pub fn from_iter<Iter, T>(iter: Iter) -> Result<T>
where
    T: de::DeserializeOwned,
    Iter: IntoIterator<Item = (String, String)>,
{
    T::deserialize(Deserializer::new(iter.into_iter())).map_err(|error| match error {
        Error::MissingValue(value) => Error::MissingValue(value.to_uppercase()),
        _ => error,
    })
}
/// Deserializes a type based on an iterable of `(String, String)`
/// representing keys and values
Deserializes a type based on an iterable of `(String, String)`
representing keys and values
Deserializes a type based on an iterable of ` ( String String ) ` representing keys and values
pub fn from_iter<Iter, T>(iter: Iter) -> Result<T>
where
    T: de::DeserializeOwned,
    Iter: IntoIterator<Item = (String, String)>,
{
    T::deserialize(Deserializer::new(iter.into_iter())).map_err(|error| match error {
        Error::MissingValue(value) => Error::MissingValue(value.to_uppercase()),
        _ => error,
    })
}
pub fn from_iter < Iter , T > ( iter : Iter ) -> Result < T > where T : de :: DeserializeOwned , Iter : IntoIterator < Item = ( String , String ) > , { T :: deserialize ( Deserializer :: new ( iter . into_iter ( ) ) ) . map_err ( | error | match error { Error :: MissingValue ( value ) => Error :: MissingValue ( value . to_uppercase ( ) ) , _ => error , } ) }
Deserializes a type based on an iterable of `(String, String)`
representing keys and values
Deserializes a type based on an iterable of ` ( String String ) ` representing keys and values
iter
Iter
iter
Iter