The #[serde(untagged)] attribute causes the TOML serializer to fail, but is required to produce valid JSON/YAML. TOML also does not support any kind of null value so serde fails to serialize None values. At the moment this means TOML is not supported.
The
#[serde(untagged)]
attribute causes the TOML serializer to fail, but is required to produce valid JSON/YAML. TOML also does not support any kind ofnull
value soserde
fails to serializeNone
values. At the moment this means TOML is not supported.