[][src]Struct gitlab::api::FormParams

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

A structure for form parameters.

Implementations

impl<'a> FormParams<'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 into_body(self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError>[src]

Encode the parameters into a request body.

Trait Implementations

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for FormParams<'a>

impl<'a> Send for FormParams<'a>

impl<'a> Sync for FormParams<'a>

impl<'a> Unpin for FormParams<'a>

impl<'a> UnwindSafe for FormParams<'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.