pub struct KeysApiClient { /* private fields */ }
Implementations§
Source§impl KeysApiClient
impl KeysApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Trait Implementations§
Source§impl KeysApi for KeysApiClient
impl KeysApi for KeysApiClient
Source§fn create_key<'life0, 'async_trait>(
&'life0 self,
params: CreateKeyParams,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<CreateKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_key<'life0, 'async_trait>(
&'life0 self,
params: CreateKeyParams,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<CreateKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place.
Source§fn get_key<'life0, 'async_trait>(
&'life0 self,
params: GetKeyParams,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<GetKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_key<'life0, 'async_trait>(
&'life0 self,
params: GetKeyParams,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<GetKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key.
fn delete_key<'life0, 'async_trait>(
&'life0 self,
params: DeleteKeyParams,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<DeleteKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ApiKeysResponse, Error<GetKeysError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for KeysApiClient
impl !RefUnwindSafe for KeysApiClient
impl Send for KeysApiClient
impl Sync for KeysApiClient
impl Unpin for KeysApiClient
impl !UnwindSafe for KeysApiClient
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