pub struct JwtAuthService { /* private fields */ }Implementations§
Trait Implementations§
Source§impl UpdatableService<JwtKeyUpdateCommand, JwtKey> for JwtAuthService
impl UpdatableService<JwtKeyUpdateCommand, JwtKey> for JwtAuthService
fn get( &self, id: &str, ) -> Result<Option<Ref<'_, String, Versioned<JwtKey>>>, StorageError>
fn get_all_keys(&self) -> Result<HashSet<String>, StorageError>
fn create(&self, payload: JwtKey) -> Result<Versioned<JwtKey>, StorageError>
fn update( &self, id: &str, command: JwtKeyUpdateCommand, ) -> Result<Versioned<JwtKey>, StorageError>
fn delete(&self, id: &str) -> Result<(), StorageError>
fn clear(&self) -> Result<(), ()>
Auto Trait Implementations§
impl Freeze for JwtAuthService
impl !RefUnwindSafe for JwtAuthService
impl Send for JwtAuthService
impl Sync for JwtAuthService
impl Unpin for JwtAuthService
impl !UnwindSafe for JwtAuthService
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