Crates.io | comma_serde_urlencoded |
lib.rs | comma_serde_urlencoded |
version | 0.8.1 |
source | src |
created_at | 2022-09-11 12:04:33.0426 |
updated_at | 2022-09-14 14:29:48.339055 |
description | serde_urlencoded with support for serialization and deserialization of sequences and tuples in comma separated format |
homepage | |
repository | https://github.com/kinetus/comma_serde_urlencoded |
max_upload_size | |
id | 663013 |
size | 78,124 |
serde_urlencoded
with support for serialization and deserialization of sequences and tuples in comma separated format.
This crate works with Cargo and can be found on
crates.io with a Cargo.toml
like:
[dependencies]
comma_serde_urlencoded = "0.8"
The documentation is available on docs.rs.
let meal = &(
("bread", ["baguette", "strucia"]),
("cheese", vec!["comté", "cheddar"]),
("meat", ("ham", "becon")),
("fat", "butter"),
);
assert_eq!(
comma_serde_urlencoded::to_string(meal),
Ok("bread=baguette%2Cstrucia&cheese=comt%C3%A9%2Ccheddar&meat=ham%2Cbecon&fat=butter".to_owned())
);
comma_serde_urlencoded is licensed under either of
at your option.
serde_urlencoded licenses
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in serde_urlencoded by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.