Type Definition restson::Query
[−]
[src]
type Query<'a> = [(&'a str, &'a str)];
Type for URL query parameters.
Slice of tuples in which the first field is parameter name and second is value.
These parameters are used with get_with
and post_with
functions.
Examples
The vector
ⓘThis example is not tested
vec![("param1", "1234"), ("param2", "abcd")]
would be parsed to param1=1234¶m2=abcd in the request URL.