Skip to main content

NeoContract

Trait NeoContract 

Source
pub trait NeoContract {
    // Required methods
    fn name() -> &'static str;
    fn version() -> &'static str;
    fn author() -> &'static str;
    fn description() -> &'static str;
}
Expand description

Neo N3 Contract trait

Required Methods§

Source

fn name() -> &'static str

Source

fn version() -> &'static str

Source

fn author() -> &'static str

Source

fn description() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§