pub trait EventMetadata {
    const MODULE_PATH: &'static str;

    // Required method
    fn event_spec() -> EventSpec;
}
Expand description

Provides metadata about an ink! event.

Implementations must be registered into the EVENTS distributed slice, in order to be included in the contract metadata. This is done automatically by the #[derive(ink::EventMetadata)]

Required Associated Constants§

source

const MODULE_PATH: &'static str

The full path to the event type, usually provided by module_path.

Required Methods§

source

fn event_spec() -> EventSpec

Returns the metadata of the event.

Object Safety§

This trait is not object safe.

Implementors§