[][src]Struct http_header::QueryString

pub struct QueryString(_);

Methods

impl QueryString[src]

pub fn new() -> Self[src]

Create a new QueryUri instance

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

Gets a reference to the field for key

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

Gets a mutable reference to field for key

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

Inserts a new field with key and value

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

A reference to the fields

pub fn fields_mut(&mut self) -> &mut HashMap<Data<UriQuery>, Data<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 Clone for QueryString[src]

impl Eq for QueryString[src]

impl PartialEq<QueryString> for QueryString[src]

impl Debug for QueryString[src]

impl TryFrom<Data<Uri>> for QueryString[src]

type Error = HttpError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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.

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]