pub struct AdminResource<'c, C: HttpClient> { /* private fields */ }Expand description
Operations on API keys for an organization.
Implementations§
Source§impl<'c, C: HttpClient> AdminResource<'c, C>
impl<'c, C: HttpClient> AdminResource<'c, C>
Sourcepub async fn create_api_key(
&self,
req: &CreateApiKeyRequest,
) -> Result<ApiKeyCreated, MesaError>
pub async fn create_api_key( &self, req: &CreateApiKeyRequest, ) -> Result<ApiKeyCreated, MesaError>
Sourcepub async fn revoke_api_key(
&self,
id: &str,
) -> Result<SuccessResponse, MesaError>
pub async fn revoke_api_key( &self, id: &str, ) -> Result<SuccessResponse, MesaError>
Auto Trait Implementations§
impl<'c, C> Freeze for AdminResource<'c, C>
impl<'c, C> RefUnwindSafe for AdminResource<'c, C>where
C: RefUnwindSafe,
impl<'c, C> Send for AdminResource<'c, C>
impl<'c, C> Sync for AdminResource<'c, C>
impl<'c, C> Unpin for AdminResource<'c, C>
impl<'c, C> UnwindSafe for AdminResource<'c, C>where
C: RefUnwindSafe,
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