Module ruma_serde::duration::secs[][src]

Expand description

De-/serialization functions for Option<std::time::Duration> objects represented as milliseconds.

Delegates to js_int::UInt to ensure integer size is within bounds.

Functions

deserialize

Deserializes an integer representing seconds into a Duration.

serialize

Serializes a Duration to an integer representing seconds.