Function lta_models::utils::de::from_str_error_as_none
source · pub fn from_str_error_as_none<'de, T, D>(
deserializer: D
) -> Result<Option<T>, D::Error>where
T: FromStr,
T::Err: Display,
D: Deserializer<'de>,
Expand description
Errors
Fails when data cant be deserialized to String. Returns None on error