Function lta_models::utils::de::from_str_to_bool
source · pub fn from_str_to_bool<'de, D>(deserializer: D) -> Result<bool, D::Error>where
D: Deserializer<'de>,
Expand description
Simple conversion of Y
,Yes
and N
, No
to boolean
Errors
Fails when data cant be deserialized to String. Returns false
if data is invalid