pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &ServiceUserCreate,
) -> Result<ServiceUser, Error>
pub async fn create( &self, req: &ServiceUserCreate, ) -> Result<ServiceUser, Error>
Create a new service user
Sourcepub async fn get(&self, id: &str) -> Result<ServiceUser, Error>
pub async fn get(&self, id: &str) -> Result<ServiceUser, Error>
Get the details of a Bot User by ID.
Sourcepub fn list(&self, req: FilteredPaging) -> List
pub fn list(&self, req: FilteredPaging) -> List
List all service users in this account.
Sourcepub async fn update(
&self,
req: &ServiceUserUpdate,
) -> Result<ServiceUser, Error>
pub async fn update( &self, req: &ServiceUserUpdate, ) -> Result<ServiceUser, Error>
Update attributes of a service user by ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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