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
andto_encoded_params
, which each produce aVec<(String, String)>
representing the struct as query parameters, either un-encoded or url-encoded respectively.
Derive Macros
QueryParams
derivesfn to_query_params(&self) -> Vec<(String, String)>
for any struct with field values supporting.to_string()
.