pub struct Email {
pub message_id: Option<String>,
pub sender: Sender,
pub recipients: Recipients,
pub subject: String,
pub body_html: Option<String>,
pub body_text: Option<String>,
pub reply_to: Option<Vec<EmailAddress>>,
pub headers: Option<HashMap<String, String>>,
}Expand description
Email message
Fields§
§message_id: Option<String>Message ID (optional)
sender: SenderSender
recipients: RecipientsRecipients
subject: StringSubject
body_html: Option<String>Body (HTML)
body_text: Option<String>Body (Plain Text)
reply_to: Option<Vec<EmailAddress>>Reply-To address (optional)
headers: Option<HashMap<String, String>>Custom headers (optional)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Email
impl<'de> Deserialize<'de> for Email
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
Auto Trait Implementations§
impl Freeze for Email
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnwindSafe for Email
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