Crate serde_nanos
source · [−]Expand description
Serde Nanos
Documentation | Github | Crate
A serde wrapper that can be used to serialize timestamps and durations as nanoseconds.
It’s often useful together with serde_json to communicate with JSON
protocols.
Traits
Types that can be deserialized via #[serde(with = "serde_nanos")].
Types that can be serialized via #[serde(with = "serde_nanos")].
Functions
Serde deserialize_with function to deserialize time values as nanoseconds.
Serde serialize_with function to serialize time values as nanoseconds.