Skip to main content

MailRecipient

Trait MailRecipient 

Source
pub trait MailRecipient<N> {
    // Required method
    fn route_mail(
        &self,
        notification: &N,
    ) -> Result<Option<String>, NotificationError>;
}
Expand description

Explicit routing for mail notifications, independent of any user model.

Required Methods§

Source

fn route_mail( &self, notification: &N, ) -> Result<Option<String>, NotificationError>

Return the address to use for this notification, or no route.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§