Module option

Source
Expand description

Use the well-known RFC2822 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 RFC2822 representation.
serialize
Serialize an Option<OffsetDateTime> using the well-known RFC2822 format.