Struct qstring::Param [] [src]

pub struct Param {
    pub name: String,
    pub value: String,
}

Parameter found in a query string.

Fields

Query parameter name.

Query parameter value.

Methods

impl Param
[src]

Single parameter in a query string.

[src]

Constructs a Param from raw &str values.

let p = qstring::Param::new("foo", "bar baz");
assert_eq!(format!("{}", p), "&foo=bar%20baz")

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Param
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Param
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> PartialEq<(&'a str, &'a str)> for Param
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for Param
[src]

[src]

Formats the value using the given formatter. Read more