Available on crate feature
serde
and (crate features formatting
or parsing
) only.Expand description
Use the well-known RFC3339 format when serializing and deserializing an
Option<OffsetDateTime>
.
Use this module in combination with serde’s #[with]
attribute.
Functions§
- deserialize
parsing
Deserialize anOption<OffsetDateTime>
from its RFC3339 representation. - serialize
formatting
Serialize anOption<OffsetDateTime>
using the well-known RFC3339 format.