You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
Hello. Is there a sensible way to have EnumMap use default values for each key if their key is not present when deserializing from a human-readable format?
The text was updated successfully, but these errors were encountered:
It's possible to manually implement deserialization function that provides a default using serde(deserialize_with) functionality. Hopefully it will help, I may later consider adding functionality to use default values for enum maps to serde_with crate.
Thanks. I've ended up implementing something similar myself, but I guess there's not really a good way to have this included upstream without breaking the current semantics. Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello. Is there a sensible way to have
EnumMap
use default values for each key if their key is not present when deserializing from a human-readable format?The text was updated successfully, but these errors were encountered: