Struct qstring::Param
[−]
[src]
pub struct Param {
pub name: String,
pub value: String,
}Parameter found in a query string.
Fields
name: String
Query parameter name.
value: String
Query parameter value.
Methods
impl Param[src]
Single parameter in a query string.
fn new(name: &str, value: &str) -> Param[src]
Constructs a Param from raw &str values.
let p = qstring::Param::new("foo", "bar baz"); assert_eq!(format!("{}", p), "&foo=bar%20baz")
fn new_esc(name: &str, value: &str) -> Param[src]
Constructs a Param by URL decoding the given values.
let p = qstring::Param::new_esc("foo", "bar%20baz"); assert_eq!(format!("{}", p), "&foo=bar%20baz")
Trait Implementations
impl Clone for Param[src]
fn clone(&self) -> Param[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Param[src]
impl PartialEq for Param[src]
fn eq(&self, __arg_0: &Param) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Param) -> bool[src]
This method tests for !=.
impl<'a> PartialEq<(&'a str, &'a str)> for Param[src]
fn eq(&self, other: &(&str, &str)) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.