pub struct EnvironmentStorage { /* private fields */ }
Expand description
Environment variable storage backend
Implementations§
Trait Implementations§
Source§impl StorageBackend for EnvironmentStorage
impl StorageBackend for EnvironmentStorage
fn load_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, ApiKey>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 ApiKey,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_all_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 HashMap<String, ApiKey>,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for EnvironmentStorage
impl RefUnwindSafe for EnvironmentStorage
impl Send for EnvironmentStorage
impl Sync for EnvironmentStorage
impl Unpin for EnvironmentStorage
impl UnwindSafe for EnvironmentStorage
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