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