pub struct Map<'a> { /* private fields */ }Expand description
A map used for holding query string paramenters or headers
Implementations§
source§impl<'a> Map<'a>
impl<'a> Map<'a>
sourcepub fn get(&self, key: &str) -> Option<&str>
pub fn get(&self, key: &str) -> Option<&str>
Get the value of an element of this Map, or None if it doesn’t contain key
sourcepub fn insert<K, V>(&mut self, key: K, value: V)where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
pub fn insert<K, V>(&mut self, key: K, value: V)where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
Insert a new element in this Map
Overwrites elements with the same key, if present.