pub struct Email {
pub attachments: Option<Vec<Attachment>>,
pub bcc: Option<Vec<EmailAddress>>,
pub cc: Option<Vec<EmailAddress>>,
pub from: Option<Box<EmailAddress>>,
pub html: Option<String>,
pub reply_to: Option<Box<EmailAddress>>,
pub subject: Option<String>,
pub text: Option<String>,
pub to: Option<Vec<EmailAddress>>,
}
Expand description
Email : This class is an abstraction of a simple email message.
Fields§
§attachments: Option<Vec<Attachment>>
§bcc: Option<Vec<EmailAddress>>
§cc: Option<Vec<EmailAddress>>
§from: Option<Box<EmailAddress>>
§html: Option<String>
§reply_to: Option<Box<EmailAddress>>
§subject: Option<String>
§text: Option<String>
§to: Option<Vec<EmailAddress>>
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
impl StructuralPartialEq for Email
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