[−][src]Struct email::HeaderMap
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]
ⓘImportant traits for HeaderIter<'s>
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
impl RefUnwindSafe for HeaderMap
impl Send for HeaderMap
impl Sync for HeaderMap
impl Unpin for HeaderMap
impl UnwindSafe for HeaderMap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,