pub struct ServiceAccountsApi { /* private fields */ }Implementations§
Source§impl ServiceAccountsApi
impl ServiceAccountsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn create( &self, data: CreateServiceAccountRequest, ) -> Result<CreateServiceAccountResponse, HttpError>
pub async fn list( &self, params: Option<PaginationParams>, ) -> Result<ListServiceAccountsResponse, HttpError>
pub async fn get(&self, id: &str) -> Result<ServiceAccountResponse, HttpError>
pub async fn rotate_secret( &self, id: &str, ) -> Result<RotateServiceAccountSecretResponse, HttpError>
pub async fn revoke(&self, id: &str) -> Result<(), HttpError>
Trait Implementations§
Source§impl Clone for ServiceAccountsApi
impl Clone for ServiceAccountsApi
Source§fn clone(&self) -> ServiceAccountsApi
fn clone(&self) -> ServiceAccountsApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceAccountsApi
impl !RefUnwindSafe for ServiceAccountsApi
impl Send for ServiceAccountsApi
impl Sync for ServiceAccountsApi
impl Unpin for ServiceAccountsApi
impl UnsafeUnpin for ServiceAccountsApi
impl !UnwindSafe for ServiceAccountsApi
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