Module codec

Source
Expand description

Serialization and deserialization -related logic.

Structs§

BcsCodec
A StateCodec that uses bcs for all keys and values.
BorshCodec
A StateCodec that uses borsh for all keys and values.
JsonCodec
A StateCodec that uses serde_json for all keys and values.

Traits§

EncodeKeyLike
A trait for codecs which know how to serialize a type Ref as if it were some other type Target.
StateCodec
A trait for types that can serialize keys and values, as well as deserializing values for storage access.
StateKeyCodec
A trait for types that can serialize keys for storage access.
StateValueCodec
A trait for types that can serialize and deserialize values for storage access.