Skip to main content

opt_bool

Function opt_bool 

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

Reads a boolean; 0/1 and "true"/"false" are accepted.

ยงErrors

Only when the input itself is malformed.