[][src]Trait casper_node::rpcs::RpcWithOptionalParams

pub trait RpcWithOptionalParams {
    type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + Send + 'static;
    type ResponseResult: Serialize + for<'de> Deserialize<'de> + Send + 'static;

    const METHOD: &'static str;
}

A JSON-RPC with the "params" field optional.

Associated Types

type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + 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> + Send + 'static

The JSON-RPC response's "result" type.

Loading content...

Associated Constants

const METHOD: &'static str

The JSON-RPC "method" name.

Loading content...

Implementors

Loading content...