#[derive(Manifest)]
{
// Attributes available to this derive:
#[manifest]
}
Expand description
Derives the Manifest trait for storage access declarations.
§Attributes
#[manifest(read)]- Declares read access to a slot#[manifest(write)]- Declares write access to a slot#[manifest(commutative)]- Declares commutative access
§Example
ⓘ
#[derive(Manifest)]
struct Counter {
#[manifest(read, write)]
value: Slot,
}