Derive Macro parity_scale_codec::CompactAs

source ·
#[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>);