Available on crate feature
serde
only.Expand description
Serialization/Deserialization with serde
The DateTime
type has default implementations for (de)serializing to/from the RFC 3339
format. This module provides alternatives for serializing to timestamps.
The alternatives are for use with serde’s with
annotation combined with the module name.
Alternatively the individual serialize
and deserialize
functions in each module can be used
with serde’s serialize_with
and deserialize_with
annotations.
Available on crate feature ‘serde’ only.
Modules§
- ts_
microseconds - Ser/de to/from timestamps in microseconds
- ts_
microseconds_ option - Ser/de to/from optional timestamps in microseconds
- ts_
milliseconds - Ser/de to/from timestamps in milliseconds
- ts_
milliseconds_ option - Ser/de to/from optional timestamps in milliseconds
- ts_
nanoseconds - Ser/de to/from timestamps in nanoseconds
- ts_
nanoseconds_ option - Ser/de to/from optional timestamps in nanoseconds
- ts_
seconds - Ser/de to/from timestamps in seconds
- ts_
seconds_ option - Ser/de to/from optional timestamps in seconds