pub struct SearchEntry {
pub dn: String,
pub attributes: Vec<Attribute>,
}Expand description
A SearchResultEntry: one matching entry and its attributes.
Fields§
§dn: String§attributes: Vec<Attribute>Implementations§
Source§impl SearchEntry
impl SearchEntry
Sourcepub fn attribute(&self, name: &str) -> Option<&Attribute>
pub fn attribute(&self, name: &str) -> Option<&Attribute>
Look an attribute up by name, case-insensitively.
Attribute descriptions are case-insensitive in LDAP, and directories disagree about which case they return: OpenLDAP echoes what the schema says, Active Directory echoes what you asked for. Matching exactly is a bug that only shows up against the other server.
Trait Implementations§
Source§impl Clone for SearchEntry
impl Clone for SearchEntry
Source§impl Debug for SearchEntry
impl Debug for SearchEntry
Source§impl From<SearchEntry> for User
impl From<SearchEntry> for User
Source§fn from(entry: SearchEntry) -> User
fn from(entry: SearchEntry) -> User
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchEntry
impl RefUnwindSafe for SearchEntry
impl Send for SearchEntry
impl Sync for SearchEntry
impl Unpin for SearchEntry
impl UnsafeUnpin for SearchEntry
impl UnwindSafe for SearchEntry
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