pub struct SendEmail {
pub from: Address,
pub to: Vec<Address>,
pub subject: String,
pub html: Option<String>,
pub text: Option<String>,
pub cc: Option<Vec<Address>>,
pub bcc: Option<Vec<Address>>,
pub reply_to: Option<Address>,
pub headers: Option<HashMap<String, String>>,
pub tags: Option<Vec<String>>,
pub send_at: Option<String>,
pub attachments: Option<Vec<Attachment>>,
}Expand description
Body of a send / validate request.
Build with SendEmail::builder. The sender field serializes as from_.
Fields§
§from: AddressSender address (serialized as from_ on the wire).
to: Vec<Address>One or more recipients.
subject: StringSubject line.
html: Option<String>HTML body.
text: Option<String>Plain-text body.
cc: Option<Vec<Address>>CC recipients.
bcc: Option<Vec<Address>>BCC recipients.
reply_to: Option<Address>Reply-To address.
headers: Option<HashMap<String, String>>Custom message headers.
Tags for filtering and analytics.
send_at: Option<String>Schedule delivery for later (ISO 8601). Starter plan and up.
attachments: Option<Vec<Attachment>>File attachments.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendEmail
impl RefUnwindSafe for SendEmail
impl Send for SendEmail
impl Sync for SendEmail
impl Unpin for SendEmail
impl UnsafeUnpin for SendEmail
impl UnwindSafe for SendEmail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more