time

Module serde

Source
Available on crate feature serde only.
Expand description

Differential formats for serde.

Modulesยง

iso8601formatting or parsing
Use the well-known ISO 8601 format when serializing and deserializing an OffsetDateTime.
rfc2822formatting or parsing
Use the well-known RFC2822 format when serializing and deserializing an OffsetDateTime.
rfc3339formatting or parsing
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_descriptionmacros and (formatting or parsing)
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