pub struct UsersClient { /* private fields */ }Implementations§
Source§impl UsersClient
impl UsersClient
Sourcepub async fn create(&self, body: &Value) -> Result<Value, SdkError>
pub async fn create(&self, body: &Value) -> Result<Value, SdkError>
POST /users — create a user (org-admin required).
Sourcepub async fn search(&self, query: &str) -> Result<Vec<Value>, SdkError>
pub async fn search(&self, query: &str) -> Result<Vec<Value>, SdkError>
GET /users/search?q=… — fuzzy search by email / name.
Sourcepub async fn purge(&self, id: &str) -> Result<(), SdkError>
pub async fn purge(&self, id: &str) -> Result<(), SdkError>
DELETE /users/{id}/purge — hard-delete.
Trait Implementations§
Source§impl Clone for UsersClient
impl Clone for UsersClient
Source§fn clone(&self) -> UsersClient
fn clone(&self) -> UsersClient
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 Freeze for UsersClient
impl !RefUnwindSafe for UsersClient
impl Send for UsersClient
impl Sync for UsersClient
impl Unpin for UsersClient
impl UnsafeUnpin for UsersClient
impl !UnwindSafe for UsersClient
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