Skip to main content

SendVerificationEmail

Trait SendVerificationEmail 

Source
pub trait SendVerificationEmail:
    Send
    + Sync
    + 'static {
    // Required method
    fn send_verification_email(
        &self,
        email: VerificationEmail,
        request: Option<&Request<Vec<u8>>>,
    ) -> Result<(), OpenAuthError>;
}
Expand description

Synchronous email verification sender hook.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> SendVerificationEmail for F
where F: for<'a> Fn(VerificationEmail, Option<&'a Request<Vec<u8>>>) -> Result<(), OpenAuthError> + Send + Sync + 'static,