Enum email::Address
[−]
[src]
pub enum Address { Mailbox(Mailbox), Group(String, Vec<Mailbox>), }
Represents an RFC 5322 Address
Variants
Mailbox(Mailbox)
A "regular" email address
Group(String, Vec<Mailbox>)
A named group of mailboxes
Methods
impl Address
[src]
fn new_mailbox(address: String) -> Address
[src]
Shortcut function to make a new Mailbox with the given address [unstable]
fn new_mailbox_with_name(name: String, address: String) -> Address
[src]
Shortcut function to make a new Mailbox with the address and given-name [unstable]
fn new_group(name: String, mailboxes: Vec<Mailbox>) -> Address
[src]
Shortcut function to make a new Group with a collection of mailboxes [unstable]
Trait Implementations
impl PartialEq for Address
[src]
fn eq(&self, __arg_0: &Address) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Address) -> bool
[src]
This method tests for !=
.
impl Eq for Address
[src]
impl Debug for Address
[src]
impl Clone for Address
[src]
fn clone(&self) -> Address
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more