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§
source§impl<'de> Deserialize<'de> for LDAPEntry
impl<'de> Deserialize<'de> for LDAPEntry
source§fn 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
source§impl Diff for LDAPEntry
impl Diff for LDAPEntry
§type Repr = LDAPEntryDiff
type Repr = LDAPEntryDiff
The type associated with the structs’ difference
source§fn 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
source§fn 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
source§impl From<LDAPEntry> for SearchEntry
impl From<LDAPEntry> for SearchEntry
source§impl From<SearchEntry> for LDAPEntry
impl From<SearchEntry> for LDAPEntry
source§fn from(entry: SearchEntry) -> Self
fn from(entry: SearchEntry) -> Self
Converts to this type from the input type.
source§impl PartialEq for LDAPEntry
impl PartialEq for LDAPEntry
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more