pub struct LdapClient { /* private fields */ }Implementations§
Source§impl LdapClient
impl LdapClient
pub async fn new(bind_dn: &str, bind_pw: &str) -> Self
pub async fn search_users(&mut self, query: &str) -> Vec<LdapUser>
pub async fn _do_not_use_get_all_users(&mut self) -> Vec<LdapUser>
pub async fn get_user(&mut self, uid: &str) -> Option<LdapUser>
pub async fn get_user_by_phone(&mut self, phone: &str) -> Option<LdapUser>
pub async fn update_user(&mut self, change_set: &LdapUserChangeSet)
Trait Implementations§
Source§impl Clone for LdapClient
impl Clone for LdapClient
Source§fn clone(&self) -> LdapClient
fn clone(&self) -> LdapClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LdapClient
impl !UnwindSafe for LdapClient
impl Freeze for LdapClient
impl Send for LdapClient
impl Sync for LdapClient
impl Unpin for LdapClient
impl UnsafeUnpin for LdapClient
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