Function url_serde::serialize
[−]
[src]
pub fn serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Ser<'a, T>: Serialize,
Serialises value
with a given serializer.
This is useful to serialize rust-url
types used in structure fields or
tuple members with #[serde(serialize_with = "url_serde::serialize")]
.