Module option

Source
Expand description

Use the well-known ISO 8601 format when serializing and deserializing an Option<OffsetDateTime>.

Use this module in combination with serde’s #[with] attribute.

Functions§

deserialize
Deserialize an Option<OffsetDateTime> from its ISO 8601 representation.
serialize
Serialize an Option<OffsetDateTime> using the well-known ISO 8601 format.