pub struct IdentityApi<'a> { /* private fields */ }Expand description
Identity API resource.
Implementations§
Source§impl<'a> IdentityApi<'a>
impl<'a> IdentityApi<'a>
pub fn new(client: &'a ConcurClient) -> Self
Sourcepub async fn list_users(
&self,
count: Option<u32>,
cursor: Option<&str>,
) -> Result<UserList>
pub async fn list_users( &self, count: Option<u32>, cursor: Option<&str>, ) -> Result<UserList>
List users for the company.
Sourcepub async fn search_users(
&self,
filter: &str,
attributes: Option<Vec<String>>,
) -> Result<UserList>
pub async fn search_users( &self, filter: &str, attributes: Option<Vec<String>>, ) -> Result<UserList>
Search users via POST /.search.
Sourcepub async fn create_user(&self, user: &User) -> Result<User>
pub async fn create_user(&self, user: &User) -> Result<User>
Create a new user.
Sourcepub async fn patch_user(&self, id: &str, ops: &[PatchOp]) -> Result<User>
pub async fn patch_user(&self, id: &str, ops: &[PatchOp]) -> Result<User>
Update a user with PATCH (RFC 7644).
Sourcepub async fn delete_user(&self, id: &str) -> Result<()>
pub async fn delete_user(&self, id: &str) -> Result<()>
Delete a user.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for IdentityApi<'a>
impl<'a> !UnwindSafe for IdentityApi<'a>
impl<'a> Forget for IdentityApi<'a>
impl<'a> Freeze for IdentityApi<'a>
impl<'a> Send for IdentityApi<'a>
impl<'a> Sync for IdentityApi<'a>
impl<'a> Unpin for IdentityApi<'a>
impl<'a> UnsafeUnpin for IdentityApi<'a>
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