sp_runtime_interface::pass_by
#[derive(PassByCodec)]
Derive macro for implementing PassBy with the Codec strategy.
PassBy
Codec
This requires that the type implements Encode and Decode from parity-scale-codec.
Encode
Decode
parity-scale-codec
#[derive(PassByCodec, Encode, Decode)] struct EncodableType { name: Vec<u8>, param: u32, }