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
nil
able value intoT
, wherenil
turns into theDefault
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 implementsFromStr
andDisplay
to convert from or into string. Note this can be used for all primitive data types. - from_
str_ allow_ null - Combines
from_str
andallow_null
. - hash
- Hash serialization with validation
- nullable
- Serialize/deserialize
nil
able type intoT
, wherenil
turns into the default impl. - option_
hash Option<Hash>
serialization with validation- optional
- Serialize/deserialize
Option<T>
type whereT
has a serializer/deserializer. Deserialize toNone
if the received value equals theDefault
value. SerializeNone
asSome
with theDefault
value forT
. - 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).