logo
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

The JSON-RPC request’s “params” type. This will be passed to the handler wrapped in an Option.

The JSON-RPC response’s “result” type.

Required Associated Constants

The JSON-RPC “method” name.

Implementors