pub struct MailMessage {
pub to: Vec<String>,
pub cc: Option<Vec<String>>,
pub bcc: Option<Vec<String>>,
pub from: String,
pub reply_to: Option<String>,
pub subject: String,
pub body: Vec<MailBody>,
}
Expand description
Email message
Fields§
§to: Vec<String>
To
cc: Option<Vec<String>>
CC
bcc: Option<Vec<String>>
BCC
from: String
FROM
reply_to: Option<String>
REPLY-TO
subject: String
SUBJECT
body: Vec<MailBody>
List of attachments
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 moreSource§impl Debug for MailMessage
impl Debug for MailMessage
Auto Trait Implementations§
impl Freeze for MailMessage
impl RefUnwindSafe for MailMessage
impl Send for MailMessage
impl Sync for MailMessage
impl Unpin 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