Skip to main content

SendVerificationEmail

Trait SendVerificationEmail 

Source
pub trait SendVerificationEmail: Send + Sync {
    // Required method
    fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        user: &'life1 User,
        url: &'life2 str,
        token: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             Self: 'async_trait;
}
Expand description

Trait for custom email sending logic.

When set on EmailVerificationConfig::send_verification_email, this callback overrides the default EmailProvider-based sending.

Required Methods§

Source

fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, user: &'life1 User, url: &'life2 str, token: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: 'async_trait,

Implementors§