Enum lettre_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]
pub fn new_mailbox(address: String) -> Address
[src]
Shortcut function to make a new Mailbox with the given address [unstable]
pub 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]
pub 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 Display for Address
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Eq for Address
[src]
impl PartialEq<Address> 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 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