pub struct EmailMessage {
pub to: String,
pub subject: String,
pub text_body: String,
pub html_body: Option<String>,
pub headers: BTreeMap<String, String>,
}Fields§
§to: String§subject: String§text_body: String§html_body: Option<String>§headers: BTreeMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for EmailMessage
impl Clone for EmailMessage
Source§fn clone(&self) -> EmailMessage
fn clone(&self) -> EmailMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmailMessage
impl Debug for EmailMessage
Source§impl<'de> Deserialize<'de> for EmailMessage
impl<'de> Deserialize<'de> for EmailMessage
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
Source§impl PartialEq for EmailMessage
impl PartialEq for EmailMessage
Source§fn eq(&self, other: &EmailMessage) -> bool
fn eq(&self, other: &EmailMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmailMessage
impl Serialize for EmailMessage
impl StructuralPartialEq for EmailMessage
Auto Trait Implementations§
impl Freeze for EmailMessage
impl RefUnwindSafe for EmailMessage
impl Send for EmailMessage
impl Sync for EmailMessage
impl Unpin for EmailMessage
impl UnsafeUnpin for EmailMessage
impl UnwindSafe for EmailMessage
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