Function ruma::serde::duration::secs::serialize[][src]

pub fn serialize<S>(
    duration: &Duration,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
    S: Serializer
Expand description

Serializes a Duration to an integer representing seconds.

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