Skip to main content

opt_string

Function opt_string 

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

Reads a string; numbers and booleans are converted to strings.

ยงErrors

Only when the input itself is malformed.