pub struct MailMessage {
pub from: String,
pub reply_to: Option<String>,
pub to: Vec<String>,
pub subject: String,
pub html: String,
pub text: String,
}Expand description
A fully-rendered email ready for transport.
Fields§
§from: StringFormatted From address (e.g. "Name <email@example.com>").
reply_to: Option<String>Optional Reply-To address.
to: Vec<String>List of recipient addresses.
subject: StringEmail subject line with variables already substituted.
html: StringRendered HTML body wrapped in a layout.
text: StringPlain-text body derived from Markdown.
Trait Implementations§
Source§impl Clone for MailMessage
impl Clone for MailMessage
Source§fn clone(&self) -> MailMessage
fn clone(&self) -> MailMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MailMessage
impl RefUnwindSafe for MailMessage
impl Send for MailMessage
impl Sync for MailMessage
impl Unpin for MailMessage
impl UnsafeUnpin for MailMessage
impl UnwindSafe for MailMessage
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