[][src]Struct lettre::Envelope

pub struct Envelope { /* fields omitted */ }

Simple email envelope representation

We only accept mailboxes, and do not support source routes (as per RFC).


impl Envelope[src]

pub fn new(
    from: Option<EmailAddress>,
    to: Vec<EmailAddress>
) -> EmailResult<Envelope>

Creates a new envelope, which may fail if to is empty.

pub fn to(&self) -> &[EmailAddress][src]

Destination addresses of the envelope

pub fn from(&self) -> Option<&EmailAddress>[src]

Source address of the envelope

Trait Implementations

impl Clone for Envelope[src]

impl Debug for Envelope[src]

impl<'de> Deserialize<'de> for Envelope[src]

impl Eq for Envelope[src]

impl PartialEq<Envelope> for Envelope[src]

impl Serialize for Envelope[src]

impl StructuralEq for Envelope[src]

impl StructuralPartialEq for Envelope[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.