Struct email::Mailbox [] [src]

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

Represents an RFC 5322 mailbox

Fields

The given name for this address

The mailbox address

Methods

impl Mailbox
[src]

[src]

Create a new Mailbox without a display name

[src]

Create a new Mailbox with a display name

Trait Implementations

impl PartialEq for Mailbox
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Mailbox
[src]

impl Debug for Mailbox
[src]

[src]

Formats the value using the given formatter.

impl Clone for Mailbox
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Mailbox
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Mailbox
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more