Module polkadot_sdk_frame::derive
source · Expand description
All derive macros used in frame.
This is already part of the prelude
.
Traits§
?
formatting.- Trait that allows zero-copy read of value-references from slices in LE format.
- Trait that allows zero-copy write of value-references to slices in LE format.
- Implementors return their meta type information.
Derive Macros§
- Derive [
Clone
] but do not bound any generic. - Derive macro generating an impl of the trait
Debug
. - Derive [
Debug
] but do not bound any generics. - Derive
parity_scale_codec::Decode
and for struct and enum. - derive
Default
but do no bound any generic. Docs are atframe_support::DefaultNoBound
. - Derive
parity_scale_codec::Encode
andparity_scale_codec::EncodeLike
for struct and enum. - DeriveEq but do no bound any generic.
- Derive [
Ord
] but do no bound any generic. Docs are atframe_support::OrdNoBound
. - Derive [
PartialEq
] but do not bound any generic. - Derive [
PartialOrd
] but do not bound any generic. Docs are atframe_support::PartialOrdNoBound
. - Derive [
Debug
], ifstd
is enabled it usesframe_support::DebugNoBound
, ifstd
is not enabled it just returns"<wasm:stripped>"
. This behaviour is useful to prevent bloating the runtime WASM blob from unneeded code.