Module conversion

Module conversion 

Source
Expand description

Types and traits related to the conversion of LDAP types to Rust types

Structs§

Binary
a wrapper newtype to identify types we want to deserialize from Binary LDAP attributes this avoids conflicts with e.g. Vec<u8> deserialized from a multi-valued number attribute and Vec<u8> serialized from a single-valued binary attribute
LdapAttributeResultValues
represents the representation for a type that could be returned by a search query, zero, one or multiple Strings and zero, one or multiple binary values (Vec<u8>)
UnexpectedBinaryValue
error that occurs when a conversion encounters a value that it can not convert
UnexpectedStringValue
error that occurs when a conversion encounters a value that it can not convert

Enums§

OptionOfFromBinaryLdapTypeError
represents the errors that can occur when decoding an Option of types with a FromBinaryLdapType implementation
OptionOfFromStringLdapTypeError
represents the errors that can occur when decoding an Option of types with a FromStringLdapType implementation
RequiredFromBinaryLdapTypeError
represents the errors that can occur when decoding a required value of types with a FromBinaryLdapType implementation
RequiredFromStringLdapTypeError
represents the errors that can occur when decoding a required value of types with a FromStringLdapType implementation
VecOfFromBinaryLdapTypeError
represents the errors that can occur when decoding a Vec of types with a FromBinaryLdapType implementation
VecOfFromStringLdapTypeError
represents the errors that can occur when decoding a Vec of types with a FromStringLdapType implementation

Traits§

FromBinaryLdapType
a primitive result that can be converted from an Ldap type that is returned as a Vec<u8>
FromLdapType
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)
FromStringLdapType
a primitive result that can be converted from an Ldap type that is returned as a String
SearchEntryExt
adds a method to ldap3::SearchEntry to extract the LdapResultValue for a given attribute