mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 07:21:12 +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