Function serde_yml::with::nested_singleton_map::deserialize
source · pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error>where
T: Deserialize<'de>,
D: Deserializer<'de>,
Expand description
Deserializes a value using the nested singleton map representation.
This function expects the input to be in the nested singleton map representation, where all nested enums are represented as YAML maps with a single key-value pair.
§Arguments
deserializer
- The deserializer to use for deserializing the value.
§Returns
A result containing the deserialized value or an error if deserialization fails.