Skip to main content

NeoContractMethodTrait

Trait NeoContractMethodTrait 

Source
pub trait NeoContractMethodTrait {
    // Required methods
    fn name() -> &'static str;
    fn parameters() -> &'static [&'static str];
    fn return_type() -> &'static str;
    fn execute(args: &[NeoValue]) -> Result<NeoValue, NeoError>;
}
Expand description

Neo N3 Contract Method trait

Required Methods§

Source

fn name() -> &'static str

Source

fn parameters() -> &'static [&'static str]

Source

fn return_type() -> &'static str

Source

fn execute(args: &[NeoValue]) -> Result<NeoValue, NeoError>

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§