pub trait EmailTemplates:
DynClone
+ Sync
+ Send {
// Required methods
fn send_activated(&self, mailer: &Mailer, to_email: &str);
fn send_password_changed(&self, mailer: &Mailer, to_email: &str);
fn send_password_reset(&self, mailer: &Mailer, to_email: &str);
fn send_recover_existent_account(
&self,
mailer: &Mailer,
to_email: &str,
link: &str,
);
fn send_recover_nonexistent_account(
&self,
mailer: &Mailer,
to_email: &str,
link: &str,
);
fn send_register(&self, mailer: &Mailer, to_email: &str, link: &str);
}
Expand description
A trait that defines the behavior of an email template