Module timestamp
Expand description
Serialize/deserialize Timestamp type from and into string:
Structs§
- Rfc3339
- Helper struct to serialize and deserialize Timestamp into an RFC3339-compatible string
This is required because the serde
with
attribute is only available to fields of a struct but not the whole struct.
Functions§
- deserialize
- Deserialize string into Timestamp
- fmt_
as_ rfc3339_ nanos - Helper for formatting an [
OffsetDateTime
] value. - serialize
- Serialize from Timestamp into string
- to_
rfc3339_ nanos - Serialization helper for converting an [
OffsetDateTime
] object to a string.