Skip to main content

ActionDeriv

Trait ActionDeriv 

Source
pub trait ActionDeriv:
    Sealed
    + Serialize
    + DeserializeOwned
    + 'static {
    const TYPE_CODE: TypeCode;
    const SCHEMA_VERSION: u32;
}
Expand description

Derive-emitted half of Action. Carries the constants and the serde bounds that Action’s blanket impl needs to drive postcard. #[derive(arkhe_macros::ArkheAction)] is the only sanctioned path.

Required Associated Constants§

Source

const TYPE_CODE: TypeCode

Stable dispatch identifier. Set via #[arkhe(type_code = N, ...)].

Source

const SCHEMA_VERSION: u32

Version tag for canonical bytes. Bumping invalidates older serialized bodies.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§