Struct email::HeaderMap
[−]
[src]
pub struct HeaderMap { /* fields omitted */ }
A collection of Headers [unstable]
Methods
impl HeaderMap
[src]
fn new() -> HeaderMap
[unstable]
fn insert(&mut self, header: Header)
Adds a header to the collection [unstable]
fn iter(&self) -> HeaderIter
Get an Iterator over the collection of headers. [unstable]
fn get(&self, name: String) -> Option<&Header>
Get the last value of the header with name
[unstable]
fn get_value<T: FromHeader>(&self, name: String) -> ParsingResult<T>
Get the last value of the header with name
, as a decoded type.
[unstable]
fn len(&self) -> usize
[unstable] Get the number of headers within this map.
fn find(&self, name: &String) -> Option<Vec<&Header>>
[unstable]
Find a list of headers of name
, None
if there
are no headers with that name.
Trait Implementations
impl Eq for HeaderMap
[src]
impl PartialEq for HeaderMap
[src]
fn eq(&self, __arg_0: &HeaderMap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HeaderMap) -> bool
This method tests for !=
.
impl Debug for HeaderMap
[src]
impl Clone for HeaderMap
[src]
fn clone(&self) -> HeaderMap
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more