Skip to main content

decode

Function decode 

Source
pub fn decode<'de, D, T>(decoder: D) -> Result<Option<T>, D::Error>
where D: Decoder<'de>, T: FromStr<Err: Display>,
Expand description

Decode an optional string and parse it through FromStr.