Trait ApiKeyStorage
Source pub trait ApiKeyStorage {
// Required methods
fn store_api_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
value: &'life2 ApiKey,
) -> Pin<Box<dyn Future<Output = Result<String, ApiKeyStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn retrieve_api_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ApiKey, ApiKeyStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_api_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, ApiKeyStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}