ruma::serde::duration::opt_ms

Function deserialize

Source
pub fn deserialize<'de, D>(
    deserializer: D,
) -> Result<Option<Duration>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,
Expand description

Deserializes an Option<Duration>.

Will fail if integer is greater than the maximum integer that can be unambiguously represented by an f64.