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 intoT, wherenilturns into theDefaultvalue. - 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
Tthat implementsFromStrandDisplayto convert from or into string. Note this can be used for all primitive data types. - from_
str_ allow_ null - Combines
from_strandallow_null. - hash
- Hash serialization with validation
- nullable
- Serialize/deserialize
nilable type intoT, wherenilturns into the default impl. - option_
hash Option<Hash>serialization with validation- optional
- Serialize/deserialize
Option<T>type whereThas a serializer/deserializer. Deserialize toNoneif the received value equals theDefaultvalue. SerializeNoneasSomewith theDefaultvalue 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-protocrate. - 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).