Available on crate feature
serde
only.Expand description
Differential formats for serde.
Modulesยง
- iso8601
formatting
orparsing
- Use the well-known ISO 8601 format when serializing and deserializing an
OffsetDateTime
. - rfc2822
formatting
orparsing
- Use the well-known RFC2822 format when serializing and deserializing an
OffsetDateTime
. - rfc3339
formatting
orparsing
- Use the well-known RFC3339 format when serializing and deserializing an
OffsetDateTime
. - timestamp
- Treat an
OffsetDateTime
as a Unix timestamp for the purposes of serde. - visitor ๐
- Serde visitor for various types.
Macrosยง
- format_
description macros
and (formatting
orparsing
) - Generate a custom serializer and deserializer from a format string or an existing format.
- item ๐
- Consume the next item in a sequence.
Constantsยง
- DATE_
FORMAT ๐parsing
- The format used when serializing and deserializing a human-readable
Date
. - OFFSET_
DATE_ ๐TIME_ FORMAT parsing
- The format used when serializing and deserializing a human-readable
OffsetDateTime
. - PRIMITIVE_
DATE_ ๐TIME_ FORMAT parsing
- The format used when serializing and deserializing a human-readable
PrimitiveDateTime
. - TIME_
FORMAT ๐parsing
- The format used when serializing and deserializing a human-readable
Time
. - UTC_
DATE_ ๐TIME_ FORMAT parsing
- The format used when serializing and deserializing a human-readable
UtcDateTime
. - UTC_
OFFSET_ ๐FORMAT parsing
- The format used when serializing and deserializing a human-readable
UtcOffset
. - UTC_
OFFSET_ ๐HOUR parsing
- UTC_
OFFSET_ ๐MINUTE parsing
- UTC_
OFFSET_ ๐SECOND parsing