[][src]Struct rusty_s3::Map

pub struct Map<'a> { /* fields omitted */ }

A map used for holding query string paramenters or headers

Implementations

impl<'a> Map<'a>[src]

pub const fn new() -> Self[src]

Construct a new empty Map

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

Get the number of elements in this Map

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

Return true if this Map is empty

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

Get the value of an element of this Map, or None if it doesn't contain key

pub fn insert<K, V>(&mut self, key: K, value: V) where
    K: Into<Cow<'a, str>>,
    V: Into<Cow<'a, str>>, 
[src]

Insert a new element in this Map

Overwrites elements with the same key, if present.

pub fn remove(&mut self, key: &str) -> Option<(Cow<'a, str>, Cow<'a, str>)>[src]

Remove an element from this Map and return it

pub fn iter(&self) -> impl Iterator<Item = (&str, &str)> + Clone[src]

Return an Iterator over this map

The elements are always sorted in alphabetical order based on the key.

Trait Implementations

impl<'a> Clone for Map<'a>[src]

impl<'a> Debug for Map<'a>[src]

impl<'a> Default for Map<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Map<'a>[src]

impl<'a> Send for Map<'a>[src]

impl<'a> Sync for Map<'a>[src]

impl<'a> Unpin for Map<'a>[src]

impl<'a> UnwindSafe for Map<'a>[src]

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> Same<T> for T

type Output = T

Should always be Self

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.