pub struct Keys<'a> { /* private fields */ }Implementations§
Source§impl<'a> Keys<'a>
impl<'a> Keys<'a>
pub async fn create(&self, key: &ApiKey) -> Result<ApiKey, Error>
pub async fn retreive(&self, id: &str) -> Result<ApiKeyResponse, Error>
pub async fn retreive_all(&self) -> Result<ApiKeyResponses, Error>
pub async fn delete(&self, id: &str) -> Result<ApiKeyDeleteResponse, Error>
Trait Implementations§
impl<'a> Copy for Keys<'a>
Auto Trait Implementations§
impl<'a> Freeze for Keys<'a>
impl<'a> !RefUnwindSafe for Keys<'a>
impl<'a> Send for Keys<'a>
impl<'a> Sync for Keys<'a>
impl<'a> Unpin for Keys<'a>
impl<'a> !UnwindSafe for Keys<'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