Struct email::HeaderMap [] [src]

pub struct HeaderMap {
    // some fields omitted
}

A collection of Headers [unstable]

Methods

impl HeaderMap

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

Derived Implementations

impl Clone for HeaderMap

fn clone(&self) -> HeaderMap

fn clone_from(&mut self, source: &Self)

impl Debug for HeaderMap

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for HeaderMap

fn eq(&self, __arg_0: &HeaderMap) -> bool

fn ne(&self, __arg_0: &HeaderMap) -> bool

impl Eq for HeaderMap