[−][src]Struct http_header::QueryString
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]
&self,
key: &Data<'b, UriQuery>
) -> Option<&Data<'a, UriQuery>>
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]
&mut self,
key: &Data<'b, UriQuery>
) -> Option<&mut Data<'a, UriQuery>>
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]
&mut self
) -> &mut HashMap<Data<'a, UriQuery>, Data<'a, UriQuery>>
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]
fn eq(&self, other: &QueryString<'a>) -> bool
[src]
fn ne(&self, other: &QueryString<'a>) -> bool
[src]
impl<'a> Clone for QueryString<'a>
[src]
fn clone(&self) -> 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]
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,