Expand description
Represents the different schema versions.
The serialization of this type includes the versioning information. The serialization of this is always prefixed with two 255u8 in order to distinguish this versioned schema from the unversioned.
When embedded into a smart contract module, name the custom section
concordium-schema
.
Variants
V0(ModuleV0)
Version 0 schema, only supported by V0 smart contracts.
V1(ModuleV1)
Version 1 schema, only supported by V1 smart contracts.
V2(ModuleV2)
Version 2 schema, only supported by V1 smart contracts.
Trait Implementations
sourceimpl Clone for VersionedModuleSchema
impl Clone for VersionedModuleSchema
sourcefn clone(&self) -> VersionedModuleSchema
fn clone(&self) -> VersionedModuleSchema
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VersionedModuleSchema
impl Debug for VersionedModuleSchema
sourceimpl Deserial for VersionedModuleSchema
impl Deserial for VersionedModuleSchema
Auto Trait Implementations
impl RefUnwindSafe for VersionedModuleSchema
impl Send for VersionedModuleSchema
impl Sync for VersionedModuleSchema
impl Unpin for VersionedModuleSchema
impl UnwindSafe for VersionedModuleSchema
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more