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 singleton_map representation.
This function is a wrapper around singleton_map::deserialize and allows using
singleton_map in combination with other serialize_with attributes.
§Arguments
deserializer- The deserializer to use for deserializing the value.
§Returns
A result containing the deserialized value or an error if deserialization fails.