mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-10 18:11:02 +00:00
bb1a9b2389
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