pub trait SendInvitationEmail: Send + Sync {
// Required method
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
email: &'life1 InvitationEmail,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Application callback for invitation email delivery.
Required Methods§
Sourcefn send<'life0, 'life1, 'async_trait>(
&'life0 self,
email: &'life1 InvitationEmail,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
email: &'life1 InvitationEmail,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the invitation email. The plugin logs delivery errors without failing the request.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".