pub struct Message {Show 13 fields
pub to: Option<Vec<String>>,
pub cc: Option<Vec<String>>,
pub bcc: Option<Vec<String>>,
pub from: Option<String>,
pub sender: Option<String>,
pub subject: Option<String>,
pub tag: Option<String>,
pub reply_to: Option<String>,
pub plain_body: Option<String>,
pub html_body: Option<String>,
pub attachments: Option<Vec<Vec<u8>>>,
pub headers: Option<MessageHash>,
pub bounce: Option<bool>,
}Expand description
Message represents a email which can be sent
Fields§
§to: Option<Vec<String>>The e-mail addresses of the recipients (max 50)
cc: Option<Vec<String>>The e-mail addresses of any CC contacts (max 50)
bcc: Option<Vec<String>>The e-mail addresses of any BCC contacts (max 50)
from: Option<String>The e-mail address for the From header
sender: Option<String>The e-mail address for the Sender header
subject: Option<String>The subject of the e-mail
tag: Option<String>The tag of the e-mail
reply_to: Option<String>Set the reply-to address for the mail
plain_body: Option<String>The plain text body of the e-mail
html_body: Option<String>The HTML body of the e-mail
attachments: Option<Vec<Vec<u8>>>An array of attachments for this e-mail
headers: Option<MessageHash>A hash of additional headers
bounce: Option<bool>Is this message a bounce?
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.