EmailService

Trait EmailService 

Source
pub trait EmailService: Send + Sync {
    // Required method
    fn send_email(
        &self,
        to: &str,
        subject: &str,
        body: &str,
    ) -> Result<(), String>;
}
Expand description

Email service interface

Required Methods§

Source

fn send_email(&self, to: &str, subject: &str, body: &str) -> Result<(), String>

Implementors§