Struct ldap_types::basic::LDAPEntry
source · [−]pub struct LDAPEntry {
pub dn: String,
pub attrs: HashMap<String, Vec<String>>,
pub bin_attrs: HashMap<String, Vec<Vec<u8>>>,
}
Expand description
represents an object in the LDAP tree we would use ldap3::SearchEntry but then we would not be able to derive Diff easily
Fields
dn: String
the DN of the entry
attrs: HashMap<String, Vec<String>>
the textual attributes of the entry
bin_attrs: HashMap<String, Vec<Vec<u8>>>
the binary attributes of the entry
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for LDAPEntry
impl<'de> Deserialize<'de> for LDAPEntry
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Diff for LDAPEntry
impl Diff for LDAPEntry
type Repr = LDAPEntryDiff
type Repr = LDAPEntryDiff
The type associated with the structs’ difference
sourcefn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
Produces a diff between two structs, using an external diffing implementation
sourcefn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
Applies the diff directly to the struct, using an external diffing implementation
sourceimpl From<LDAPEntry> for SearchEntry
impl From<LDAPEntry> for SearchEntry
sourceimpl From<SearchEntry> for LDAPEntry
impl From<SearchEntry> for LDAPEntry
sourcefn from(entry: SearchEntry) -> Self
fn from(entry: SearchEntry) -> Self
Converts to this type from the input type.
impl Eq for LDAPEntry
impl StructuralEq for LDAPEntry
impl StructuralPartialEq for LDAPEntry
Auto Trait Implementations
impl RefUnwindSafe for LDAPEntry
impl Send for LDAPEntry
impl Sync for LDAPEntry
impl Unpin for LDAPEntry
impl UnwindSafe for LDAPEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more