pub struct UsersService { /* private fields */ }Expand description
Operations on the Users resource.
Implementations§
Source§impl UsersService
impl UsersService
pub async fn add(&self, req: &AddUserRequest) -> Result<IdResponse, Error>
pub async fn list( &self, opts: &UserListOptions, ) -> Result<PaginatedResponse<User>, Error>
pub async fn get(&self, user_id: i64) -> Result<User, Error>
pub async fn bulk( &self, req: &BulkUserRequest, ) -> Result<BulkUserResponse, Error>
pub async fn edit( &self, user_id: i64, req: &EditUserRequest, ) -> Result<IdResponse, Error>
pub async fn deactivate(&self, user_id: i64) -> Result<IdResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for UsersService
impl !UnwindSafe for UsersService
impl Freeze for UsersService
impl Send for UsersService
impl Sync for UsersService
impl Unpin for UsersService
impl UnsafeUnpin for UsersService
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