pub fn deserialize<'a, T, D>(d: D) -> Result<Option<T>, D::Error>where Serde<T>: Deserialize<'a>, D: Deserializer<'a>,
Deserialize an Option<Duration> or Option<SystemTime>
Option<Duration>
Option<SystemTime>
This function can be used with serde_derive’s with and deserialize_with annotations.
serde_derive
with
deserialize_with