pub struct EmailPasswordAuth<'a> { /* private fields */ }Implementations§
Source§impl<'a> EmailPasswordAuth<'a>
impl<'a> EmailPasswordAuth<'a>
pub fn new( adapter: &'a dyn DbAdapter, config: EmailPasswordConfig, hash_password: PasswordHashFn, verify_password: PasswordVerifyFn, ) -> Self
pub fn with_defaults( adapter: &'a dyn DbAdapter, config: EmailPasswordConfig, ) -> Self
pub async fn sign_up( &self, input: SignUpInput, ) -> Result<EmailPasswordAuthResult, AuthFlowError>
pub async fn sign_in( &self, input: SignInInput, ) -> Result<EmailPasswordAuthResult, AuthFlowError>
Trait Implementations§
Source§impl<'a> Clone for EmailPasswordAuth<'a>
impl<'a> Clone for EmailPasswordAuth<'a>
Source§fn clone(&self) -> EmailPasswordAuth<'a>
fn clone(&self) -> EmailPasswordAuth<'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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for EmailPasswordAuth<'a>
impl<'a> !UnwindSafe for EmailPasswordAuth<'a>
impl<'a> Freeze for EmailPasswordAuth<'a>
impl<'a> Send for EmailPasswordAuth<'a>
impl<'a> Sync for EmailPasswordAuth<'a>
impl<'a> Unpin for EmailPasswordAuth<'a>
impl<'a> UnsafeUnpin for EmailPasswordAuth<'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