Module serde

Source
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