Skip to main content

VerificationEmailOverride

Trait VerificationEmailOverride 

Source
pub trait VerificationEmailOverride<S: AuthSchema>: Send + Sync {
    // Required method
    fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        user: &'life1 UserView,
        request: Option<&'life2 AuthRequest>,
        ctx: &'life3 AuthContext<S>,
    ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;

    // Provided method
    fn send_in_transaction<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        user: &'life1 UserView,
        request: Option<&'life2 AuthRequest>,
        ctx: &'life3 AuthContext<S>,
        _transaction: &'life4 dyn AuthTransaction<S>,
    ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait { ... }
}
Expand description

A plugin override for delivery of the core email-verification challenge.

Required Methods§

Source

fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, user: &'life1 UserView, request: Option<&'life2 AuthRequest>, ctx: &'life3 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Provided Methods§

Source

fn send_in_transaction<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, user: &'life1 UserView, request: Option<&'life2 AuthRequest>, ctx: &'life3 AuthContext<S>, _transaction: &'life4 dyn AuthTransaction<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§