pub trait EmailDispatcher: Send + Sync {
// Required method
fn send_email(
&self,
account_id: &str,
from: &str,
to: &str,
subject: &str,
body_text: &str,
body_html: Option<&str>,
);
}Expand description
Outbound email dispatch used by services that emulate AWS flows that route through SES (Cognito verification, etc.) without taking a direct dependency on the SES crate.
Required Methods§
fn send_email( &self, account_id: &str, from: &str, to: &str, subject: &str, body_text: &str, body_html: Option<&str>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".