pub struct AccountsService { /* private fields */ }Expand description
Operations on the Accounts resource.
Implementations§
Source§impl AccountsService
impl AccountsService
pub async fn create( &self, req: &CreateAccountRequest, ) -> Result<IdResponse, Error>
pub async fn list( &self, opts: Option<&AccountListOptions>, ) -> Result<PaginatedResponse<Account>, Error>
pub async fn get(&self, account_id: i64) -> Result<Account, Error>
pub async fn edit( &self, account_id: i64, req: &EditAccountRequest, ) -> Result<IdResponse, Error>
pub async fn lock(&self, account_id: i64) -> Result<IdResponse, Error>
pub async fn unlock(&self, account_id: i64) -> Result<IdResponse, Error>
pub async fn deactivate(&self, account_id: i64) -> Result<IdResponse, Error>
pub async fn update_quota( &self, account_id: i64, req: &UpdateAccountQuotaRequest, ) -> Result<IdResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for AccountsService
impl !UnwindSafe for AccountsService
impl Freeze for AccountsService
impl Send for AccountsService
impl Sync for AccountsService
impl Unpin for AccountsService
impl UnsafeUnpin for AccountsService
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