referrerpolicy=no-referrer-when-downgrade

Module derive

Source
Expand description

All derive macros used in frame.

This is already part of the main prelude.

Re-exports§

pub use serde;

Traits§

Debug
? formatting.
Decode
Trait that allows zero-copy read of value-references from slices in LE format.
Deserialize
The serde Serialize/Deserialize derive macros and traits.
Encode
Trait that allows zero-copy write of value-references to slices in LE format.
Serialize
The serde Serialize/Deserialize derive macros and traits.
TypeInfo
Implementors return their meta type information.

Derive Macros§

CloneNoBound
Derive [Clone] but do not bound any generic.
Debug
Derive macro generating an impl of the trait Debug.
DebugNoBound
Derive [Debug] but do not bound any generics.
Decode
Derive parity_scale_codec::Decode for struct and enum.
DefaultNoBound
derive Default but do no bound any generic. Docs are at frame_support::DefaultNoBound.
Deserialize
The serde Serialize/Deserialize derive macros and traits.
Encode
Derive parity_scale_codec::Encode and parity_scale_codec::EncodeLike for struct and enum.
EqNoBound
DeriveEq but do no bound any generic.
OrdNoBound
Derive [Ord] but do no bound any generic. Docs are at frame_support::OrdNoBound.
PartialEqNoBound
Derive [PartialEq] but do not bound any generic.
PartialOrdNoBound
Derive [PartialOrd] but do not bound any generic. Docs are at frame_support::PartialOrdNoBound.
RuntimeDebug
RuntimeDebugNoBound
Derive [Debug], if std is enabled it uses frame_support::DebugNoBound, if std is not enabled it just returns "<wasm:stripped>". This behaviour is useful to prevent bloating the runtime WASM blob from unneeded code.
Serialize
The serde Serialize/Deserialize derive macros and traits.
TypeInfo