[][src]Struct gitlab::api::QueryParams

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

A structure for query parameters.

Implementations

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

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

Push a single parameter.

pub fn push_opt<'b, K, V>(&mut self, key: K, value: Option<V>) -> &mut Self where
    K: Into<Cow<'a, str>>,
    V: ParamValue<'b>,
    'b: 'a, 
[src]

Push a single parameter.

pub fn extend<'b, I, K, V>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = (K, V)>,
    K: Into<Cow<'a, str>>,
    V: ParamValue<'b>,
    'b: 'a, 
[src]

Push a set of parameters.

pub fn add_to_url(&self, url: &mut Url)[src]

Add the parameters to a URL.

Trait Implementations

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for QueryParams<'a>

impl<'a> Send for QueryParams<'a>

impl<'a> Sync for QueryParams<'a>

impl<'a> Unpin for QueryParams<'a>

impl<'a> UnwindSafe for QueryParams<'a>

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> 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.