pub struct LdapMappingHandler { /* private fields */ }
Expand description
LDAP mapping handler
Implementations§
Source§impl LdapMappingHandler
impl LdapMappingHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn list(&self) -> Result<Vec<LdapMapping>>
pub async fn list(&self) -> Result<Vec<LdapMapping>>
List all LDAP mappings
Sourcepub async fn get(&self, uid: u32) -> Result<LdapMapping>
pub async fn get(&self, uid: u32) -> Result<LdapMapping>
Get specific LDAP mapping
Sourcepub async fn create(
&self,
request: CreateLdapMappingRequest,
) -> Result<LdapMapping>
pub async fn create( &self, request: CreateLdapMappingRequest, ) -> Result<LdapMapping>
Create a new LDAP mapping
Sourcepub async fn update(
&self,
uid: u32,
request: CreateLdapMappingRequest,
) -> Result<LdapMapping>
pub async fn update( &self, uid: u32, request: CreateLdapMappingRequest, ) -> Result<LdapMapping>
Update an existing LDAP mapping
Sourcepub async fn get_config(&self) -> Result<LdapConfig>
pub async fn get_config(&self) -> Result<LdapConfig>
Get LDAP configuration
Sourcepub async fn update_config(&self, config: LdapConfig) -> Result<LdapConfig>
pub async fn update_config(&self, config: LdapConfig) -> Result<LdapConfig>
Update LDAP configuration
Auto Trait Implementations§
impl Freeze for LdapMappingHandler
impl !RefUnwindSafe for LdapMappingHandler
impl Send for LdapMappingHandler
impl Sync for LdapMappingHandler
impl Unpin for LdapMappingHandler
impl !UnwindSafe for LdapMappingHandler
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