mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-12-06 12:27:08 +00:00
When annotated with #[serde(default)], a field gets a default value using std:default::Default, and will not error when decoding if the field is missing from the input. Addresses #9 Refactor default_value to use if-let