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§
- Deserialize
- Types that can be deserialized via
#[serde(with = "serde_nanos")]. - Serialize
- Types that can be serialized via
#[serde(with = "serde_nanos")].
Functions§
- deserialize
- Serde
deserialize_withfunction to deserialize time values as nanoseconds. - serialize
- Serde
serialize_withfunction to serialize time values as nanoseconds.