pub trait Reply {
// Required methods
fn schema(contract: Contract) -> Value;
fn into_output(self) -> Result<Output, ToolError>;
}Expand description
What a function may return: a JSON value, or an Answer carrying blocks
beside one.
Required Methods§
fn into_output(self) -> Result<Output, ToolError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".