pub struct ServiceKeysResource { /* private fields */ }Expand description
Creates and revokes scoped service keys.
Implementations§
Source§impl ServiceKeysResource
impl ServiceKeysResource
Sourcepub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
pub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
Creates a scoped service key.
Sourcepub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
pub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
Returns the service key list envelope.
Sourcepub async fn get(&self, service_key_id: &str) -> Result<JsonObject>
pub async fn get(&self, service_key_id: &str) -> Result<JsonObject>
Returns a single service key.
Sourcepub async fn update(
&self,
service_key_id: &str,
body: impl Serialize,
) -> Result<JsonObject>
pub async fn update( &self, service_key_id: &str, body: impl Serialize, ) -> Result<JsonObject>
Patches a service key.
Sourcepub async fn revoke_all(&self) -> Result<JsonObject>
pub async fn revoke_all(&self) -> Result<JsonObject>
Revokes every service key.
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceKeysResource
impl !UnwindSafe for ServiceKeysResource
impl Freeze for ServiceKeysResource
impl Send for ServiceKeysResource
impl Sync for ServiceKeysResource
impl Unpin for ServiceKeysResource
impl UnsafeUnpin for ServiceKeysResource
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