pub struct Event {
pub anonymous: bool,
/* private fields */
}
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§
Trait Implementations§
source§impl PartialEq<Event> for Event
impl PartialEq<Event> for Event
source§impl ToTokens for Event
impl ToTokens for Event
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
We mainly implement this trait for this ink! type to have a derived
Spanned
implementation for it.
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
source§impl TryFrom<ItemStruct> for Event
impl TryFrom<ItemStruct> for Event
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.