Module tendermint::serializers
source · Expand description
Serde serializers
Serializers and deserializers for a transparent developer experience.
CAUTION: There are no guarantees for backwards compatibility, this module should be considered an internal implementation detail which can vanish without further warning. Use at your own risk.
Modules
- Serialize/deserialize
nil
able value intoT
, wherenil
turns into theDefault
value. - AppHash serialization with validation
- AppHash serialization with validation
- Serialize/deserialize bytes (
Vec<u8>
) type - Serialize and deserialize any
T
that implements [core::str::FromStr] and [core::fmt::Display] from or into string. Note this can be used for all primitive data types. - Hash serialization with validation
- Serialize/deserialize
nil
able type intoT
, wherenil
turns into the default impl. Option<Hash>
serialization with validation- Serialize/deserialize
Option<T>
type whereT
has a serializer/deserializer. Usenull
if the received value equals theDefault
implementation. - De/serialize an optional type that must be converted from/to a string.
- Serialize and deserialize part_set_header.total (from string or u32), (into u32 in part_set_header.total).
- An alternative timestamp serialization/deserialization mechanism for RFC3339-compatible timestamps to that provided by the
tendermint-proto
crate. - Serialize/deserialize core::time::Duration type from and into string:
- Serialize/deserialize Timestamp type from and into string:
- Serialize/deserialize
Vec<Vec<u8>>
type from and into transactions (Base64String array).