Struct email::HeaderMap [−][src]
pub struct HeaderMap { /* fields omitted */ }
A collection of Headers [unstable]
Methods
impl HeaderMap
[src]
impl HeaderMap
pub fn new() -> HeaderMap
[src]
pub fn new() -> HeaderMap
[unstable]
pub fn insert(&mut self, header: Header)
[src]
pub fn insert(&mut self, header: Header)
Adds a header to the collection [unstable]
ⓘImportant traits for HeaderIter<'s>pub fn iter(&self) -> HeaderIter
[src]
ⓘImportant traits for HeaderIter<'s>
pub fn iter(&self) -> HeaderIter
Get an Iterator over the collection of headers. [unstable]
pub fn get(&self, name: String) -> Option<&Header>
[src]
pub fn get(&self, name: String) -> Option<&Header>
Get the last value of the header with name
[unstable]
pub fn get_value<T: FromHeader>(&self, name: String) -> ParsingResult<T>
[src]
pub fn get_value<T: FromHeader>(&self, name: String) -> ParsingResult<T>
Get the last value of the header with name
, as a decoded type.
[unstable]
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
[unstable] Get the number of headers within this map.
pub fn find(&self, name: &String) -> Option<Vec<&Header>>
[src]
pub 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 Eq for HeaderMap
impl PartialEq for HeaderMap
[src]
impl PartialEq for HeaderMap
fn eq(&self, other: &HeaderMap) -> bool
[src]
fn eq(&self, other: &HeaderMap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HeaderMap) -> bool
[src]
fn ne(&self, other: &HeaderMap) -> bool
This method tests for !=
.
impl Debug for HeaderMap
[src]
impl Debug for HeaderMap
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for HeaderMap
[src]
impl Clone for HeaderMap