[][src]Struct email::HeaderMap

pub struct HeaderMap { /* fields omitted */ }

A collection of Headers [unstable]

Methods

impl HeaderMap[src]

pub fn new() -> HeaderMap[src]

[unstable]

pub fn insert(&mut self, header: Header)[src]

Adds a header to the collection [unstable]

pub fn replace(&mut self, header: Header)[src]

Important traits for HeaderIter<'s>
pub fn iter(&self) -> HeaderIter[src]

Get an Iterator over the collection of headers. [unstable]

pub fn get(&self, name: String) -> Option<&Header>[src]

Get the last value of the header with name [unstable]

pub fn get_value<T: FromHeader>(&self, name: String) -> ParsingResult<T>[src]

Get the last value of the header with name, as a decoded type. [unstable]

pub fn len(&self) -> usize[src]

[unstable] Get the number of headers within this map.

pub fn is_empty(&self) -> bool[src]

pub fn find(&self, name: &str) -> Option<Vec<&Header>>[src]

[unstable] Find a list of headers of name, None if there are no headers with that name.

Trait Implementations

impl Clone for HeaderMap[src]

impl Debug for HeaderMap[src]

impl Default for HeaderMap[src]

impl Eq for HeaderMap[src]

impl PartialEq<HeaderMap> for HeaderMap[src]

impl StructuralEq for HeaderMap[src]

impl StructuralPartialEq for HeaderMap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,