Derive Macro tetsy_scale_codec_derive::CompactAs [−][src]
#[derive(CompactAs)] { // Attributes available to this derive: #[codec] }
Derive tetsy_scale_codec::Compact
and tetsy_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>);