Serde URL Params Build Status Build status

Serialization of URL parameters from Rust structs.

toml [dependencies] serde_url_params = "0.2"

Example

```rust

[derive(Debug, Serialize)]

enum Filter { New, Registered, Blocked }

[derive(Debug, Serialize)]

struct Params { cursor: Option, per_page: Option, username: String, filter: Vec, }

let params = Params { cursor: Some(42), perpage: None, username: String::from("boxdot"), filter: vec![Filter::New, Filter::Blocked], }; asserteq!( serdeurlparams::to_string(&params).unwrap(), "cursor=42&username=boxdot&filter=New&filter=Blocked" ); ```

License

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this document by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.