Module workflow_serializer::prelude
source · Re-exports§
pub use crate::serializer::Deserializer;
pub use crate::serializer::Serializable;
pub use crate::serializer::Serializer;
pub use crate::payload;
pub use crate::payload;
Macros§
- Load item using Serializer deserialization.
crate::serializer::Serializer
is meant to provide custom serialization over Borsh that can be used to store additional metadata such as struct version. - Load item using Borsh deserialization
- Create Payload struct - a
#repr[transparent]
struct wrappingCursor<Vec<u8>>
. This struct acts as a helper for storing and loading items into aVec<u8>
buffer. - Store item using Serializer serialization.
crate::serializer::Serializer
is meant to provide custom serialization over Borsh that can be used to store additional metadata such as struct version. - Store item using Borsh serialization
Traits§
- A data-structure that can be de-serialized from binary format by NBOR.
- A data-structure that can be serialized into binary format by NBOR.
Derive Macros§
- derive proc-macro for
borsh::de::BorshDeserialize
trait - derive proc-macro for
borsh::ser::BorshSerialize
trait