Skip to main content

Mail

Struct Mail 

Source
pub struct Mail {
    pub from: Mailbox,
    pub to: Vec<Mailbox>,
    pub cc: Vec<Mailbox>,
    pub bcc: Vec<Mailbox>,
    pub subject: String,
    pub text: Option<String>,
    pub html: Option<String>,
    pub attachments: Vec<FileAttachment>,
    pub headers: Vec<(String, String)>,
    pub date: SystemTime,
    pub message_id: String,
    pub boundary_seed: String,
}

Fields§

§from: Mailbox§to: Vec<Mailbox>§cc: Vec<Mailbox>§bcc: Vec<Mailbox>§subject: String§text: Option<String>§html: Option<String>§attachments: Vec<FileAttachment>§headers: Vec<(String, String)>§date: SystemTime§message_id: String§boundary_seed: String

ASCII alphanumeric seed, 1..=48 bytes. Caller ensures it is absent from content; derived mixed/alternative boundaries are distinct.

Auto Trait Implementations§

§

impl Forget for Mail

§

impl Freeze for Mail

§

impl RefUnwindSafe for Mail

§

impl Send for Mail

§

impl Sync for Mail

§

impl Unpin for Mail

§

impl UnsafeUnpin for Mail

§

impl UnwindSafe for Mail

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.