MailerExt

Trait MailerExt 

Source
pub trait MailerExt: Mailer {
    // Provided method
    fn validate(&self, email: &Email) -> Result<(), MailError> { ... }
}
Expand description

Extension trait for optional mailer operations.

Provided Methods§

Source

fn validate(&self, email: &Email) -> Result<(), MailError>

Validate an email before sending.

Implementors§

Source§

impl<T: Mailer> MailerExt for T