Trait ink::reflect::TraitInfo

source ·
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§

source

const ID: u32

The unique id of the ink! trait definition.

source

const PATH: &'static str

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.

source

const NAME: &'static str

The name of the ink! trait.

This is just for convenience.

Implementors§