Struct email::Mailbox [] [src]

pub struct Mailbox {
    pub name: Option<String>,
    pub address: String,
}

Represents an RFC 5322 mailbox

Fields

name

The given name for this address

address

The mailbox address

Methods

impl Mailbox

fn new(address: String) -> Mailbox

Create a new Mailbox without a display name

fn new_with_name(name: String, address: String) -> Mailbox

Create a new Mailbox with a display name

Trait Implementations

impl Display for Mailbox

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

impl FromStr for Mailbox

type Err = ParsingError

fn from_str(s: &str) -> ParsingResult<Mailbox>

Derived Implementations

impl Clone for Mailbox

fn clone(&self) -> Mailbox

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

impl Debug for Mailbox

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

impl Eq for Mailbox

impl PartialEq for Mailbox

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

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