pub struct UsersApi { /* private fields */ }Implementations§
Source§impl UsersApi
impl UsersApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn me(&self) -> Result<GetUserResponse>
pub async fn get(&self, user_id: &str) -> Result<GetUserResponse>
pub async fn search( &self, params: &SearchUsersParams, ) -> Result<SearchUsersResponse>
pub async fn create(&self, params: &CreateUserParams) -> Result<GetUserResponse>
pub async fn update( &self, user_id: &str, params: &UpdateUserParams, ) -> Result<GetUserResponse>
pub async fn delete(&self, user_id: &str) -> Result<DeleteUserResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for UsersApi
impl !UnwindSafe for UsersApi
impl Freeze for UsersApi
impl Send for UsersApi
impl Sync for UsersApi
impl Unpin for UsersApi
impl UnsafeUnpin for UsersApi
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