Struct ink_lang_ir::Event [−][src]
pub struct Event {
pub anonymous: bool,
// some fields omitted
}
Expand description
An ink! event struct definition.
Example
#[ink(event)]
pub struct Transaction {
#[ink(topic)]
from: AccountId,
#[ink(topic)]
to: AccountId,
value: Balance,
}
Fields
anonymous: bool
Implementations
Returns an iterator yielding all the #[ink(topic)]
annotated fields
of the event struct.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
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