pub struct ApiKeysClient<'a> { /* private fields */ }Expand description
Client for API key management (/{org}/api-keys).
Implementations§
Source§impl ApiKeysClient<'_>
impl ApiKeysClient<'_>
Sourcepub async fn list(
&self,
) -> Result<GetByOrgApiKeys200Response, Error<GetByOrgApiKeysError>>
pub async fn list( &self, ) -> Result<GetByOrgApiKeys200Response, Error<GetByOrgApiKeysError>>
Sourcepub async fn create(
&self,
request: PostByOrgApiKeysRequest,
) -> Result<PostByOrgApiKeys201Response, Error<PostByOrgApiKeysError>>
pub async fn create( &self, request: PostByOrgApiKeysRequest, ) -> Result<PostByOrgApiKeys201Response, Error<PostByOrgApiKeysError>>
Sourcepub async fn revoke(
&self,
id: &str,
) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgApiKeysByIdError>>
pub async fn revoke( &self, id: &str, ) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgApiKeysByIdError>>
Trait Implementations§
Source§impl<'a> Clone for ApiKeysClient<'a>
impl<'a> Clone for ApiKeysClient<'a>
Source§fn clone(&self) -> ApiKeysClient<'a>
fn clone(&self) -> ApiKeysClient<'a>
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<'a> Freeze for ApiKeysClient<'a>
impl<'a> !RefUnwindSafe for ApiKeysClient<'a>
impl<'a> Send for ApiKeysClient<'a>
impl<'a> Sync for ApiKeysClient<'a>
impl<'a> Unpin for ApiKeysClient<'a>
impl<'a> !UnwindSafe for ApiKeysClient<'a>
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