pub struct LdapResult {
pub code: ResultCode,
pub matched_dn: String,
pub diagnostic: String,
pub referrals: Vec<String>,
}Expand description
LDAPResult — the shape every operation’s answer ends with.
Fields§
§code: ResultCode§matched_dn: StringHow much of the requested DN the directory did find. Empty most of the time; useful when a base DN has a typo in it.
diagnostic: StringThe directory’s own words. Active Directory hides its real reason in
here as a hex sub-code, which crate::directory reads.
referrals: Vec<String>Implementations§
Source§impl LdapResult
impl LdapResult
pub fn is_success(&self) -> bool
Sourcepub fn into_result(self, operation: &str) -> Result<LdapResult>
pub fn into_result(self, operation: &str) -> Result<LdapResult>
Turn anything but success into an error that says what failed and why.
Trait Implementations§
Source§impl Clone for LdapResult
impl Clone for LdapResult
Auto Trait Implementations§
impl Freeze for LdapResult
impl RefUnwindSafe for LdapResult
impl Send for LdapResult
impl Sync for LdapResult
impl Unpin for LdapResult
impl UnsafeUnpin for LdapResult
impl UnwindSafe for LdapResult
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