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§
fn name() -> &'static str
fn parameters() -> &'static [&'static str]
fn return_type() -> &'static str
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.