deserialize_empty_string_or_string

Function deserialize_empty_string_or_string 

Source
pub fn deserialize_empty_string_or_string<'de, D>(
    deserializer: D,
) -> Result<Option<String>, D::Error>
where D: Deserializer<'de>,
Expand description

deserialize an optional String where None is represented as an empty string

ยงErrors

returns an error if the value can not be interpreted as null or a String