Enum mail_parser::Address[][src]

pub enum Address<'x> {
    Address(Addr<'x>),
    AddressList(Vec<Addr<'x>>),
    Group(Group<'x>),
    GroupList(Vec<Group<'x>>),
    Collection(Vec<Address<'x>>),
    Empty,
}
Expand description

An RFC5322 or RFC2369 address field.

Variants

Address(Addr<'x>)

A single address

Tuple Fields of Address

0: Addr<'x>
AddressList(Vec<Addr<'x>>)

An address list

Tuple Fields of AddressList

0: Vec<Addr<'x>>
Group(Group<'x>)

A group of addresses

Tuple Fields of Group

0: Group<'x>
GroupList(Vec<Group<'x>>)

A list containing two or more groups

Tuple Fields of GroupList

0: Vec<Group<'x>>
Collection(Vec<Address<'x>>)

A collection of address fields, used for header fields that might be present more than once in a message, for example Resent-To

Tuple Fields of Collection

0: Vec<Address<'x>>
Empty

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.