[−][src]Struct conjure_http::query_params::QueryParams
A data structure storing the query parameters of a request.
Implementations
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]
T: Into<String>,
U: Into<String>,
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]
T: Into<String>,
U: Into<String>,
I: IntoIterator<Item = U>,
Inserts multiple parameters.
If the key already exists, the new values will be added to the existing values.
pub fn iter(&self) -> Iter<'_>ⓘ[src]
Returns an iterator over the parameters.
Trait Implementations
impl Clone for QueryParams[src]
fn clone(&self) -> QueryParams[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for QueryParams[src]
impl Default for QueryParams[src]
fn default() -> QueryParams[src]
impl Eq for QueryParams[src]
impl<'a> Index<&'a str> for QueryParams[src]
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?
fn into_iter(self) -> Iter<'a>ⓘ[src]
impl PartialEq<QueryParams> for QueryParams[src]
fn eq(&self, other: &QueryParams) -> bool[src]
fn ne(&self, other: &QueryParams) -> bool[src]
impl StructuralEq for QueryParams[src]
impl StructuralPartialEq for QueryParams[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryParams[src]
impl Send for QueryParams[src]
impl Sync for QueryParams[src]
impl Unpin for QueryParams[src]
impl UnwindSafe for QueryParams[src]
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,