serde_yml

Module with

Source
Expand description

The with module contains the With type for YAML values. Customizations to use with Serde’s #[serde(with = …)] attribute.

Modules§

  • Serialize/deserialize nested enums using a YAML map containing one entry in which the key identifies the variant name.
  • Serialize/deserialize an enum using a YAML map containing one entry in which the key identifies the variant name.
  • Serialize/deserialize an optional enum using a YAML map containing one entry in which the key identifies the variant name.
  • Apply singleton_map to all enums contained within the data structure.
  • Serialize/deserialize an enum using a YAML map containing one entry in which the key identifies the variant name, while allowing combination with other serialize_with attributes.