Expand description
Treat an OffsetDateTime as a Unix timestamp for the purposes of serde.
Use this module in combination with serde’s #[with] attribute.
When deserializing, the offset is assumed to be UTC.
Modules§
- microseconds
 - Treat an 
OffsetDateTimeas a Unix timestamp with microseconds for the purposes of serde. - milliseconds
 - Treat an 
OffsetDateTimeas a Unix timestamp with milliseconds for the purposes of serde. - milliseconds_
i64  - Treat an 
OffsetDateTimeas a Unix timestamp with milliseconds for the purposes of serde. - nanoseconds
 - Treat an 
OffsetDateTimeas a Unix timestamp with nanoseconds for the purposes of serde. - option
 - Treat an 
Option<OffsetDateTime>as a Unix timestamp for the purposes of serde. 
Functions§
- deserialize
 - Deserialize an 
OffsetDateTimefrom its Unix timestamp - serialize
 - Serialize an 
OffsetDateTimeas its Unix timestamp