Skip to main content

empty_string_as_none

Function empty_string_as_none 

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

Like empty_as_none for string parameters: ?locale= means “not specified”, never the locale whose code is the empty string.

§Errors

Only the underlying deserializer’s own failures.