pub struct UsersManager { /* private fields */ }Expand description
Operations for the “users” API area.
Implementations§
Source§impl UsersManager
impl UsersManager
Sourcepub fn list(&self, opts: Option<UsersListOptions>) -> UsersListPaginator
pub fn list(&self, opts: Option<UsersListOptions>) -> UsersListPaginator
Iterate every crate::models::schemas::UserFull across pages, threading the cursor.
pub async fn create( &self, body: CreateUserRequest, opts: Option<UsersCreateOptions>, ) -> Result<UserFull, Error>
pub async fn get_me( &self, opts: Option<UsersGetMeOptions>, ) -> Result<UserFull, Error>
pub async fn get( &self, user_id: String, opts: Option<UsersGetOptions>, ) -> Result<UserFull, Error>
pub async fn update( &self, user_id: String, body: UpdateUserRequest, opts: Option<UsersUpdateOptions>, ) -> Result<UserFull, Error>
pub async fn delete( &self, user_id: String, opts: Option<UsersDeleteOptions>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for UsersManager
impl !UnwindSafe for UsersManager
impl Freeze for UsersManager
impl Send for UsersManager
impl Sync for UsersManager
impl Unpin for UsersManager
impl UnsafeUnpin for UsersManager
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