Crate comma_serde_urlencoded
source · [−]Expand description
serde_urlencoded
with support sequences and tuples
let meal = &(
("bread", ["baguette", "strucia"]),
("cheese", vec!["comté", "cheddar"]),
("meat", ("ham", "becon"))
);
assert_eq!(
comma_serde_urlencoded::to_string(meal),
Ok("bread=baguette%2Cstrucia&cheese=comt%C3%A9%2Ccheddar&meat=ham%2Cbecon".to_owned())
);
Modules
Deserialization support for the application/x-www-form-urlencoded
format.
Serialization support for the application/x-www-form-urlencoded
format.
Structs
A deserializer for the application/x-www-form-urlencoded
format.
A serializer for the application/x-www-form-urlencoded
format.
Functions
Deserializes a application/x-www-form-urlencoded
value from a &[u8]
.
Convenience function that reads all bytes from reader
and deserializes
them with from_bytes
.
Deserializes a application/x-www-form-urlencoded
value from a &str
.
Serializes a value into a application/x-www-form-urlencoded
String
buffer.