pub fn from_str_any<T>(s: &str) -> Result<T, Error>
where
    T: std::default::Default + for<'de> Deserialize<'de>,
{
    let mut errors = Vec::new();

    for format in SUPPORT_FORMATS {
        match from_str(s, *format) {
            Ok(t) => return Ok(t),
            Err(err) => errors.push((*format, err)),
        }
    }

    Ok(T::default())
}
Parse a string (YAML, JSON) into a value of type `T`
autocorrect/src/serde_any/de.rs