[][src]Derive Macro sp_runtime_interface::pass_by::PassByCodec

#[derive(PassByCodec)]

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,
}