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]

[src]

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

[src]

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

[src]

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

Trait Implementations

impl PartialEq for Address
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Address
[src]

impl Debug for Address
[src]

[src]

Formats the value using the given formatter.

impl Clone for Address
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Address
[src]

[src]

Formats the value using the given formatter. Read more