url_params_serializer
Allows the serialization of types which implement Serde's Serializer
trait
to HTTP GET query parameters. Typical usage:
```rust use serdederive::Serialize; use url::Url; use urlparamsserializer::tourl_params;
struct Params { bar: &'static str; baz: usize }
let params = Params { bar: "spam", baz: 5 }; let url = Url::parsewithparams("https://foo.com", tourlparams(params));
asserteq!(url.intostring(), "https://foo.com/?bar=spam&baz=5"); ```
Some more complex types can be serialized too; see the documentation for to_url_params
for more
information.