pub fn deserialize_empty_string_or_parse<'de, T, D>(
deserializer: D,
) -> Result<Option<T>, D::Error>
Expand description
deserialize an optional value with a FromStr implementation where None is represented as an empty string
ยงErrors
returns an error if the value can not be interpreted as null or a String