FromLdapType

Trait FromLdapType 

Source
pub trait FromLdapType {
    type Error;

    // Required method
    fn parse(values: LdapAttributeResultValues) -> Result<Self, Self::Error>
       where Self: Sized;
}
Expand description

a type that can be parsed from an Ldap type (on the level where optional/required and single/multi-value matter as opposed to the primitives above)

Required Associated Types§

Source

type Error

the type of error when the conversion fails

Required Methods§

Source

fn parse(values: LdapAttributeResultValues) -> Result<Self, Self::Error>
where Self: Sized,

parse this type from the LDAP representation returned by a search query

§Errors

fails if the type could not be parsed or if the number or type (string/binary) does not match what is expected

Implementations on Foreign Types§

Source§

impl<T> FromLdapType for Option<T>

Source§

impl<T> FromLdapType for Vec<T>

Implementors§