Derive Macro sp_runtime_interface::pass_by::PassByCodec

source ·
#[derive(PassByCodec)]
Expand description

Derive macro for implementing PassBy with the Codec strategy.

This requires that the type implements Encode and Decode from parity-scale-codec.

§Example

#[derive(PassByCodec, Encode, Decode)]
struct EncodableType {
    name: Vec<u8>,
    param: u32,
}