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>>)
An address list
Group(Group<'x>)
Tuple Fields
0: Group<'x>
A group of addresses
GroupList(Vec<Group<'x>>)
A list containing two or more address groups
Text(Cow<'x, str>)
A string
TextList(Vec<Cow<'x, str>>)
A list of strings
DateTime(DateTime)
Tuple Fields
0: DateTime
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.