Struct mailbox::Address [] [src]

pub struct Address { /* fields omitted */ }

Represents an email address, composed of name, user and host.

Methods

impl Address
[src]

The name if any.

This is the first part of an address, which can be bare or quoted, for example "Someone Somewhere" <someone@somewhe.re> or Someone Somewhere <someone@somewhe.re>.

The user.

This is the only mandatory part of an address, for instance it can be preceded by the name and followed by a @ and the host, or be the only part of an address.

The host if any.

This is the part after the user preceded by a @.

Trait Implementations

impl Eq for Address
[src]

impl PartialEq for Address
[src]

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

This method tests for !=.

impl Clone for Address
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Address
[src]

Formats the value using the given formatter.

impl Display for Address
[src]

Formats the value using the given formatter. Read more