Crate comma_serde_urlencoded

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§

de
Deserialization support for the application/x-www-form-urlencoded format.
ser
Serialization support for the application/x-www-form-urlencoded format.

Structs§

Deserializer
A deserializer for the application/x-www-form-urlencoded format.
Serializer
A serializer for the application/x-www-form-urlencoded format.

Functions§

from_bytes
Deserializes a application/x-www-form-urlencoded value from a &[u8].
from_reader
Convenience function that reads all bytes from reader and deserializes them with from_bytes.
from_str
Deserializes a application/x-www-form-urlencoded value from a &str.
to_string
Serializes a value into a application/x-www-form-urlencoded String buffer.