ToQueryParams

Trait ToQueryParams 

Source
pub trait ToQueryParams {
    // Required method
    fn to_query_params(&self) -> Vec<(String, String)>;

    // Provided method
    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§

Source

fn to_query_params(&self) -> Vec<(String, String)>

Creates a Vec<(String, String)> as the un-encoded (key, value) pairs for query parameters.

Provided Methods§

Source

fn to_encoded_params(&self) -> Vec<(String, String)>

Creates a Vec<(String, String)> as the url-encoded (key, value) pairs for query parameters.

Implementors§