Derive Macro gclient::ext::sp_runtime::codec::CompactAs

#[derive(CompactAs)]
{
    // Attributes available to this derive:
    #[codec]
}
Expand description

Derive parity_scale_codec::Compact and parity_scale_codec::CompactAs for struct with single field.

Attribute skip can be used to skip other fields.

ยงExample

#[derive(CompactAs)]
struct MyWrapper<T>(u32, #[codec(skip)] PhantomData<T>);