Crate to_query_params

source ·
Expand description

to-query-params exports the QueryParams derive macro for public consumption, and the ToQueryParams trait that it derives.

Traits

  • 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.

Derive Macros

  • QueryParams derives fn to_query_params(&self) -> Vec<(String, String)> for any struct with field values supporting .to_string().