[][src]Struct new_tokio_smtp::send_mail::MailEnvelop

pub struct MailEnvelop { /* fields omitted */ }

represents a mail envelop consisting of EnvelopData and a Mail

Implementations

impl MailEnvelop[src]

pub fn new(from: MailAddress, to: Vec1<MailAddress>, mail: Mail) -> Self[src]

pub fn without_reverse_path(to: Vec1<MailAddress>, mail: Mail) -> Self[src]

create a envelop with an empty reverse path

pub fn from_address(&self) -> Option<&MailAddress>[src]

pub fn to_address(&self) -> &Vec1<MailAddress>[src]

pub fn mail(&self) -> &Mail[src]

pub fn needs_smtputf8(&self) -> bool[src]

true if any mail address is internationalized or the mail body needs it

Trait Implementations

impl Clone for MailEnvelop[src]

impl Debug for MailEnvelop[src]

impl From<(Mail, EnvelopData)> for MailEnvelop[src]

impl From<MailEnvelop> for (Mail, EnvelopData)[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.