[][src]Struct conjure_http::QueryParams

pub struct QueryParams(_);

A data structure storing the query parameters of a request.

Methods

impl QueryParams[src]

pub fn new() -> QueryParams[src]

Creates a new, empty QueryParams.

pub fn insert<T, U>(&mut self, key: T, value: U) where
    T: Into<String>,
    U: Into<String>, 
[src]

Inserts a parameter.

If the key already exists, the new value will be added to the existing values.

pub fn insert_all<T, U, I>(&mut self, key: T, values: I) where
    T: Into<String>,
    U: Into<String>,
    I: IntoIterator<Item = U>, 
[src]

Inserts multiple parameters.

If the key already exists, the new values will be added to the existing values.

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

Returns an iterator over the parameters.

Trait Implementations

impl<'a> IntoIterator for &'a QueryParams[src]

type Item = (&'a str, &'a Values)

The type of the elements being iterated over.

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

impl Clone for QueryParams[src]

impl Default for QueryParams[src]

impl Eq for QueryParams[src]

impl PartialEq<QueryParams> for QueryParams[src]

impl Debug for QueryParams[src]

impl<'a> Index<&'a str> for QueryParams[src]

type Output = Values

The returned type after indexing.

impl StructuralPartialEq for QueryParams[src]

impl StructuralEq for QueryParams[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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