[][src]Struct lettre::Mailboxes

pub struct Mailboxes(_);

List or email mailboxes

This type contains a sequence of mailboxes (Some Name <user@domain.tld>, Another Name <other@domain.tld>, withoutname@domain.tld, ...).

NOTE: Enable feature "serde" to be able serialize/deserialize it using serde.

Implementations

impl Mailboxes[src]

pub fn new() -> Self[src]

Create mailboxes list

pub fn with(self, mbox: Mailbox) -> Self[src]

Add mailbox to a list

pub fn push(&mut self, mbox: Mailbox)[src]

Add mailbox to a list

pub fn into_single(self) -> Option<Mailbox>[src]

Extract first mailbox

pub fn iter(&self) -> Iter<'_, Mailbox>[src]

Iterate over mailboxes

Trait Implementations

impl Clone for Mailboxes[src]

impl Debug for Mailboxes[src]

impl Default for Mailboxes[src]

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

impl Display for Mailboxes[src]

impl Eq for Mailboxes[src]

impl Extend<Mailbox> for Mailboxes[src]

impl From<Mailbox> for Mailboxes[src]

impl From<Vec<Mailbox>> for Mailboxes[src]

impl FromStr for Mailboxes[src]

type Err = AddressError

The associated error which can be returned from parsing.

impl Hash for Mailboxes[src]

impl Into<Option<Mailbox>> for Mailboxes[src]

impl Into<Vec<Mailbox>> for Mailboxes[src]

impl IntoIterator for Mailboxes[src]

type Item = Mailbox

The type of the elements being iterated over.

type IntoIter = IntoIter<Mailbox>

Which kind of iterator are we turning this into?

impl Ord for Mailboxes[src]

impl PartialEq<Mailboxes> for Mailboxes[src]

impl PartialOrd<Mailboxes> for Mailboxes[src]

impl Serialize for Mailboxes[src]

impl StructuralEq for Mailboxes[src]

impl StructuralPartialEq for Mailboxes[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,