tendermint

Module 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ยง

allow_empty_object
allow_null
Serialize/deserialize nilable value into T, where nil turns into the Default value.
apphash
AppHash serialization with validation
apphash_base64
AppHash serialization with validation
bytes
Serialize/deserialize bytes (Vec<u8>) type
evidence
from_str
Serialize and deserialize any T that implements FromStr and Display to convert from or into string. Note this can be used for all primitive data types.
from_str_allow_null
Combines from_str and allow_null.
hash
Hash serialization with validation
nullable
Serialize/deserialize nilable type into T, where nil turns into the default impl.
option_hash
Option<Hash> serialization with validation
optional
Serialize/deserialize Option<T> type where T has a serializer/deserializer. Deserialize to None if the received value equals the Default value. Serialize None as Some with the Default value for T.
optional_from_str
De/serialize an optional type that must be converted from/to a string.
part_set_header_total
Serialize and deserialize part_set_header.total (from string or u32), (into u32 in part_set_header.total).
time
An alternative timestamp serialization/deserialization mechanism for RFC3339-compatible timestamps to that provided by the tendermint-proto crate.
time_duration
Serialize/deserialize core::time::Duration type from and into string:
timestamp
Serialize/deserialize Timestamp type from and into string:
txs
Serialize/deserialize Vec<Vec<u8>> type from and into transactions (Base64String array).