pub struct YamlKeyStore { /* private fields */ }Implementations§
Source§impl YamlKeyStore
impl YamlKeyStore
pub async fn load(path: impl AsRef<Path>) -> Result<Self, AppError>
pub fn from_records(records: Vec<ApiKeyRecord>) -> Self
Trait Implementations§
Source§impl KeyStore for YamlKeyStore
impl KeyStore for YamlKeyStore
fn find_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApiKeyRecord>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for YamlKeyStore
impl RefUnwindSafe for YamlKeyStore
impl Send for YamlKeyStore
impl Sync for YamlKeyStore
impl Unpin for YamlKeyStore
impl UnsafeUnpin for YamlKeyStore
impl UnwindSafe for YamlKeyStore
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