pub fn from_str<T>(s: &str) -> Result<T, Error> where
    T: DeserializeOwned