[][src]Struct http_header::QueryString

pub struct QueryString<'a>(_);

Methods

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

pub fn new() -> Self[src]

Create a new QueryUri instance

pub fn field<'b: 'a>(
    &self,
    key: &Data<'b, UriQuery>
) -> Option<&Data<'a, UriQuery>>
[src]

Gets a reference to the field for key

pub fn field_mut<'b: 'a>(
    &mut self,
    key: &Data<'b, UriQuery>
) -> Option<&mut Data<'a, UriQuery>>
[src]

Gets a mutable reference to field for key

pub fn insert(&mut self, key: Data<'a, UriQuery>, value: Data<'a, UriQuery>)[src]

Inserts a new field with key and value

pub fn fields(&self) -> &HashMap<Data<'a, UriQuery>, Data<'a, UriQuery>>[src]

A reference to the fields

pub fn fields_mut(
    &mut self
) -> &mut HashMap<Data<'a, UriQuery>, Data<'a, UriQuery>>
[src]

A mutable reference to the fields

pub fn to_string(&self) -> String[src]

Creates a query string from the stored key-value pairs

Trait Implementations

impl<'a> Eq for QueryString<'a>[src]

impl<'a> PartialEq<QueryString<'a>> for QueryString<'a>[src]

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<'a> TryFrom<Data<'a, Uri>> for QueryString<'a>[src]

type Error = HttpError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> Send for QueryString<'a>

impl<'a> Sync for QueryString<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

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

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