pub trait FromFcallResult: Sized {
// Required method
fn from_fcall_result(raw: &Value) -> Result<Self, ScriptError>;
}Expand description
Trait for converting a raw FCALL Value into a typed result.
Each contract Result type (e.g. CreateExecutionResult, CompleteExecutionResult)
implements this trait to parse the Lua return into the appropriate Rust enum variant.
Required Methods§
fn from_fcall_result(raw: &Value) -> Result<Self, ScriptError>
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.