Trait casper_node::rpcs::RpcWithOptionalParams
source · [−]pub trait RpcWithOptionalParams {
type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static;
type ResponseResult: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static;
const METHOD: &'static str;
}Expand description
A JSON-RPC with the “params” field optional.
Required Associated Types
type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static
type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static
The JSON-RPC request’s “params” type. This will be passed to the handler wrapped in an
Option.
type ResponseResult: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static
type ResponseResult: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static
The JSON-RPC response’s “result” type.
