Enum email::Address[][src]

pub enum Address {
    Mailbox(Mailbox),
    Group(StringVec<Mailbox>),
}

Represents an RFC 5322 Address

Variants

A "regular" email address

A named group of mailboxes

Methods

impl Address
[src]

Shortcut function to make a new Mailbox with the given address [unstable]

Shortcut function to make a new Mailbox with the address and given-name [unstable]

Shortcut function to make a new Group with a collection of mailboxes [unstable]

Trait Implementations

impl PartialEq for Address
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Address
[src]

impl Debug for Address
[src]

Formats the value using the given formatter. Read more

impl Clone for Address
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Address
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Address

impl Sync for Address