pub struct ApiKeysClient { /* private fields */ }Implementations§
Source§impl ApiKeysClient
impl ApiKeysClient
Sourcepub async fn list(&self) -> Result<Vec<Value>, SdkError>
pub async fn list(&self) -> Result<Vec<Value>, SdkError>
GET /api-keys — list API keys for the authenticated user’s org.
Sourcepub async fn create(&self, body: &Value) -> Result<Value, SdkError>
pub async fn create(&self, body: &Value) -> Result<Value, SdkError>
POST /api-keys — mint a new API key.
Sourcepub async fn update(&self, id: &str, body: &Value) -> Result<Value, SdkError>
pub async fn update(&self, id: &str, body: &Value) -> Result<Value, SdkError>
PATCH /api-keys/{id} — rename or adjust scopes.
Sourcepub async fn revoke(&self, id: &str) -> Result<(), SdkError>
pub async fn revoke(&self, id: &str) -> Result<(), SdkError>
DELETE /api-keys/{id} — soft-revoke the key.
Trait Implementations§
Source§impl Clone for ApiKeysClient
impl Clone for ApiKeysClient
Source§fn clone(&self) -> ApiKeysClient
fn clone(&self) -> ApiKeysClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiKeysClient
impl !RefUnwindSafe for ApiKeysClient
impl Send for ApiKeysClient
impl Sync for ApiKeysClient
impl Unpin for ApiKeysClient
impl UnsafeUnpin for ApiKeysClient
impl !UnwindSafe for ApiKeysClient
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