pub fn deserialize<'de, D>(d: D) -> Result<Duration, D::Error>where
D: Deserializer<'de>,
Expand description
Deserializes a Duration
via the humantime crate.
This function can be used with serde_derive
’s with
and
deserialize_with
annotations.