Closed csssuf closed 7 years ago
This seems to be a duplicate of https://github.com/RReverser/serde-xml-rs/pull/18, please see my reasoning there.
Note that you can always use #[serde(deserialize_with=foo)]
to overwrite the behaviour to match your use case. (See https://serde.rs/field-attrs.html for details on how to do that)
Boolean fields specified as integers always seem to parse as true, even with contents of
0
:This test program outputs: