Struct ink_lang_ir::Storage [−][src]
pub struct Storage { /* fields omitted */ }
Expand description
An ink! storage struct definition.
Noticed by ink! through the #[ink(storage)]
annotation.
Note
An ink! smart contract must have exactly one storage definition. The storage definition must be found in the root of the ink! module.
Example
#[ink(storage)]
pub struct MyStorage {
my_value: bool,
counter: u32,
}
Implementations
Returns the non-ink! attributes of the ink! storage struct.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Storage
impl UnwindSafe for Storage
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more