pub struct DbVerificationStore<'a> { /* private fields */ }Implementations§
Source§impl<'a> DbVerificationStore<'a>
impl<'a> DbVerificationStore<'a>
pub fn new(adapter: &'a dyn DbAdapter) -> DbVerificationStore<'a>
pub async fn create_verification( &self, input: CreateVerificationInput, ) -> Result<Verification, OpenAuthError>
pub async fn find_verification( &self, identifier: &str, ) -> Result<Option<Verification>, OpenAuthError>
pub async fn find_verification_including_expired( &self, identifier: &str, ) -> Result<Option<Verification>, OpenAuthError>
pub async fn update_verification( &self, identifier: &str, input: UpdateVerificationInput, ) -> Result<Option<Verification>, OpenAuthError>
pub async fn delete_verification( &self, identifier: &str, ) -> Result<(), OpenAuthError>
pub async fn delete_expired_verifications(&self) -> Result<u64, OpenAuthError>
Trait Implementations§
Source§impl<'a> Clone for DbVerificationStore<'a>
impl<'a> Clone for DbVerificationStore<'a>
Source§fn clone(&self) -> DbVerificationStore<'a>
fn clone(&self) -> DbVerificationStore<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DbVerificationStore<'a>
Auto Trait Implementations§
impl<'a> Freeze for DbVerificationStore<'a>
impl<'a> !RefUnwindSafe for DbVerificationStore<'a>
impl<'a> Send for DbVerificationStore<'a>
impl<'a> Sync for DbVerificationStore<'a>
impl<'a> Unpin for DbVerificationStore<'a>
impl<'a> UnsafeUnpin for DbVerificationStore<'a>
impl<'a> !UnwindSafe for DbVerificationStore<'a>
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