Enum email::Address [] [src]

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

Represents an RFC 5322 Address

Variants

Mailbox

A "regular" email address

Group

A named group of mailboxes

Methods

impl Address

fn new_mailbox(address: String) -> Address

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

fn new_mailbox_with_name(name: String, address: String) -> Address

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

fn new_group(name: String, mailboxes: Vec<Mailbox>) -> Address

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

Trait Implementations

impl Display for Address

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Clone for Address

fn clone(&self) -> Address

fn clone_from(&mut self, source: &Self)

impl Debug for Address

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for Address

impl PartialEq for Address

fn eq(&self, __arg_0: &Address) -> bool

fn ne(&self, __arg_0: &Address) -> bool