pub trait RpcHandlerResponse: DeserializeOwned {
// Provided method
fn parse(value: Value) -> Result<Self, Error> { ... }
}Expand description
A trait identifying valid NEAR JSON-RPC method responses.
Provided Methods§
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.
Implementations on Foreign Types§
Source§impl RpcHandlerResponse for Value
Available on crate feature any only.
impl RpcHandlerResponse for Value
Available on crate feature
any only.