Trait to_query_params::ToQueryParams
source · pub trait ToQueryParams {
// Required methods
fn to_query_params(&self) -> Vec<(String, String)>;
fn to_encoded_params(&self) -> Vec<(String, String)>;
}
Expand description
ToQueryParams
contains two methods, to_query_params
and to_encoded_params
, which each
produce a Vec<(String, String)>
representing the struct as query parameters, either un-encoded
or url-encoded respectively.
Required Methods§
sourcefn to_query_params(&self) -> Vec<(String, String)>
fn to_query_params(&self) -> Vec<(String, String)>
Creates a Vec<(String, String)>
as the un-encoded (key, value) pairs for query parameters.
sourcefn to_encoded_params(&self) -> Vec<(String, String)>
fn to_encoded_params(&self) -> Vec<(String, String)>
Creates a Vec<(String, String)>
as the url-encoded (key, value) pairs for query parameters.