Enum mail_parser::HeaderValue[][src]

pub enum HeaderValue<'x> {
    Address(Addr<'x>),
    AddressList(Vec<Addr<'x>>),
    Group(Group<'x>),
    GroupList(Vec<Group<'x>>),
    Text(Cow<'x, str>),
    TextList(Vec<Cow<'x, str>>),
    DateTime(DateTime),
    ContentType(ContentType<'x>),
    Collection(Vec<HeaderValue<'x>>),
    Empty,
}
Expand description

A parsed header value.

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 address groups

Tuple Fields of GroupList

0: Vec<Group<'x>>
Text(Cow<'x, str>)

A string

Tuple Fields of Text

0: Cow<'x, str>
TextList(Vec<Cow<'x, str>>)

A list of strings

Tuple Fields of TextList

0: Vec<Cow<'x, str>>
DateTime(DateTime)

A datetime

Tuple Fields of DateTime

0: DateTime
ContentType(ContentType<'x>)

A Content-Type or Content-Disposition header

Tuple Fields of ContentType

0: ContentType<'x>
Collection(Vec<HeaderValue<'x>>)

A collection of multiple header fields, for example Resent-To, References, etc.

Tuple Fields of Collection

0: Vec<HeaderValue<'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.