url_serde

Function deserialize

Source
pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error>
where D: Deserializer<'de>, De<T>: Deserialize<'de>,
Expand description

Deserialises a T value with a given deserializer.

This is useful to deserialize Url types used in structure fields or tuple members with #[serde(deserialize_with = "url_serde::deserialize")].