I am using serde to parse a JSON config. It's important for me that this never fails. Specifically, if a field can't be deserialized because the config is in the wrong format, I want to set this field to config::Default basically. Is it possible to do this with serde?
EDIT: naturally, I also want to collect the list of observed errors, and presnt the to the user
Hm, indeed the attribute can help, if I annotate each field with the appropriate function, which also will have to duplicate my overall type's default... And I guess I won't get a list of errors that way?