[−][src]Function serde_url_params::ser::to_vec
pub fn to_vec<T: ?Sized>(value: &T) -> Result<Vec<u8>> where
T: Serialize,
Serialize the given data structure as a byte vector containing URL parameters.
Errors
Serialization fails if:
T
's implementation ofSerialize
decides to fail,T
is a type without keys, i.e. not a struct.T
contains a nested struct,T
contains a map.