pub trait SesSendEmailDispatcher: Send + Sync {
// Required method
fn send_email(
&self,
account_id: &str,
from: &str,
to: Vec<String>,
cc: Vec<String>,
bcc: Vec<String>,
subject: Option<&str>,
text_body: Option<&str>,
html_body: Option<&str>,
) -> Result<(), String>;
}Expand description
SES SendEmail dispatch for callers that already speak the AWS SES
SendEmail / SendEmailV2 shape (multiple to/cc/bcc, optional subject,
text/html bodies). Distinct from EmailDispatcher, which is the
single-recipient cross-service primitive used by Cognito.
Required Methods§
fn send_email( &self, account_id: &str, from: &str, to: Vec<String>, cc: Vec<String>, bcc: Vec<String>, subject: Option<&str>, text_body: Option<&str>, html_body: Option<&str>, ) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".