Skip to main content

Reply

Trait Reply 

Source
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§

Source

fn schema(contract: Contract) -> Value

The schema of the JSON the result carries.

Source

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".

Implementors§