humantime_serde

Function deserialize

Source
pub fn deserialize<'a, T, D>(d: D) -> Result<T, D::Error>
where Serde<T>: Deserialize<'a>, D: Deserializer<'a>,
Expand description

Deserializes a Duration or SystemTime via the humantime crate.

This function can be used with serde_derive’s with and deserialize_with annotations.