pub struct VerificationService<'a, S: AuthSchema> { /* private fields */ }Implementations§
Source§impl<S: AuthSchema> VerificationService<'_, S>
impl<S: AuthSchema> VerificationService<'_, S>
pub async fn create( &self, data: impl Into<VerificationCreation>, ) -> AuthResult<Option<VerificationSnapshot>>
pub async fn create_in_transaction( &self, tx: &dyn AuthTransaction<S>, data: impl Into<VerificationCreation>, ) -> AuthResult<Option<VerificationSnapshot>>
pub async fn find( &self, identifier: &str, ) -> AuthResult<Option<VerificationSnapshot>>
pub async fn delete(&self, identifier: &str) -> AuthResult<()>
pub async fn consume( &self, identifier: &str, ) -> AuthResult<Option<VerificationSnapshot>>
pub async fn update( &self, identifier: &str, data: UpdateVerification, ) -> AuthResult<Option<VerificationSnapshot>>
pub async fn reserve(&self, data: CreateVerification) -> AuthResult<bool>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for VerificationService<'a, S>
impl<'a, S> !UnwindSafe for VerificationService<'a, S>
impl<'a, S> Freeze for VerificationService<'a, S>
impl<'a, S> Send for VerificationService<'a, S>
impl<'a, S> Sync for VerificationService<'a, S>
impl<'a, S> Unpin for VerificationService<'a, S>
impl<'a, S> UnsafeUnpin for VerificationService<'a, S>where
&'a dyn AuthStore<S>: UnsafeUnpin,
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