Enum email::Address [−][src]
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]
impl Address
pub fn new_mailbox(address: String) -> Address
[src]
pub fn new_mailbox(address: String) -> Address
Shortcut function to make a new Mailbox with the given address [unstable]
pub fn new_mailbox_with_name(name: String, address: String) -> Address
[src]
pub fn new_mailbox_with_name(name: String, address: String) -> Address
Shortcut function to make a new Mailbox with the address and given-name [unstable]
pub fn new_group(name: String, mailboxes: Vec<Mailbox>) -> Address
[src]
pub 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 PartialEq for Address
[src]
impl PartialEq for Address
fn eq(&self, other: &Address) -> bool
[src]
fn eq(&self, other: &Address) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Address) -> bool
[src]
fn ne(&self, other: &Address) -> bool
This method tests for !=
.
impl Eq for Address
[src]
impl Eq for Address
impl Debug for Address
[src]
impl Debug for Address
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Address
[src]
impl Clone for Address
fn clone(&self) -> Address
[src]
fn clone(&self) -> Address
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Address
[src]
impl Display for Address