[][src]Struct lambda_http::StrMap

pub struct StrMap(_);

A read-only view into a map of string data which may contain multiple values

Internally data is always represented as many valued

Methods

impl StrMap
[src]

pub fn get(&self, key: &str) -> Option<&str>
[src]

Return a named value where available. If there is more than one value associated with this name, the first one will be returned

pub fn get_all(&self, key: &str) -> Option<Vec<&str>>
[src]

Return all values associated with name where available

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

Return true if the underlying map is empty

pub fn iter(&self) -> StrMapIter
[src]

Return an iterator over keys and values

Trait Implementations

impl Default for StrMap
[src]

impl Clone for StrMap
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<HashMap<String, Vec<String>, RandomState>> for StrMap
[src]

impl PartialEq<StrMap> for StrMap
[src]

impl Debug for StrMap
[src]

impl<'de> Deserialize<'de> for StrMap
[src]

Auto Trait Implementations

impl Send for StrMap

impl Sync for StrMap

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T