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>>::Repr where
D: Differ<Self>,
fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Repr where
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more