pub trait TraitInfo {
    const ID: u32;
    const PATH: &'static str;
    const NAME: &'static str;
}
Expand description

Captures info about an ink! trait definition.

Required Associated Constants

The unique id of the ink! trait definition.

The module path of the ink! trait definition.

This is equivalent to Rust’s builtin module_path! macro invocation at the definition site of the ink! trait.

The name of the ink! trait.

This is just for convenience.

Implementors