tendermint::serializers

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.