Closed QnJ1c2kNCg closed 10 months ago
I believe that you can annotate your structs with deny_unknown_fields
and when you deserialize to your own types, deserialization should fail if a field is encountered that you didn't expect.
Does this work for you?
this is what i needed, thanks!
Is this something like a strict mode, where during the configuration parsing, if a configuration knob is not recognized, the entire
Config
creation fails?Thanks!