pub trait MailSetup<T>: Debug {
    fn setup(self, config: &mut T);
}
Expand description

Can set up the given mail services.

/// This mail setup replaces dispatch service with default. No mail will be sent.
#[derive(Clone, Debug)]
struct NoDispatch;

impl<T: AcceptsDispatch> MailSetup<T> for NoDispatch
{
    fn setup(self, config: &mut T) {
        config.wrap_dispatches(|_| NullDispatch)
    }
}

let mail_svc = Builder + NoDispatch;

Required methods

Implementors