pub struct User {
pub dn: String,
pub attributes: Vec<Attribute>,
}Expand description
A user the directory recognised, with whatever attributes were asked for.
Fields§
§dn: StringThe entry’s distinguished name — the only identifier a directory guarantees is unique and stable enough to key a session on.
attributes: Vec<Attribute>Implementations§
Trait Implementations§
Source§impl Authenticatable for User
The DN is what a session remembers.
impl Authenticatable for User
The DN is what a session remembers.
Not the username: a person can be renamed, and two directories can disagree about which attribute a username lives in. A DN is the directory’s own answer to “which entry is this”.
Source§fn auth_identifier(&self) -> String
fn auth_identifier(&self) -> String
The value stored in the session, usually a primary key.
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 User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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