Derive Macro parity_scale_codec_derive::CompactAs[][src]

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

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>);