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§
- de
- Deserialization support for the
application/x-www-form-urlencodedformat. - ser
- Serialization support for the
application/x-www-form-urlencodedformat.
Structs§
- Deserializer
- A deserializer for the
application/x-www-form-urlencodedformat. - Serializer
- A serializer for the
application/x-www-form-urlencodedformat.
Functions§
- from_
bytes - Deserializes a
application/x-www-form-urlencodedvalue from a&[u8]. - from_
reader - Convenience function that reads all bytes from
readerand deserializes them withfrom_bytes. - from_
str - Deserializes a
application/x-www-form-urlencodedvalue from a&str. - to_
string - Serializes a value into a
application/x-www-form-urlencodedStringbuffer.