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>)

Tuple Fields

0: Addr<'x>

A single address

AddressList(Vec<Addr<'x>>)

Tuple Fields

0: Vec<Addr<'x>>

An address list

Group(Group<'x>)

Tuple Fields

0: Group<'x>

A group of addresses

GroupList(Vec<Group<'x>>)

Tuple Fields

0: Vec<Group<'x>>

A list containing two or more address groups

Text(Cow<'x, str>)

Tuple Fields

0: Cow<'x, str>

A string

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

Tuple Fields

0: Vec<Cow<'x, str>>

A list of strings

DateTime(DateTime)

Tuple Fields

A datetime

ContentType(ContentType<'x>)

Tuple Fields

0: ContentType<'x>

A Content-Type or Content-Disposition header

Collection(Vec<HeaderValue<'x>>)

Tuple Fields

0: Vec<HeaderValue<'x>>

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

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.