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

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;

    pub const METHOD: &'static str;
}

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

Associated Types

type OptionalRequestParams: Serialize + for<'de> Deserialize<'de> + JsonSchema + DocExample + Send + 'static[src]

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[src]

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

Loading content...

Associated Constants

pub const METHOD: &'static str[src]

The JSON-RPC "method" name.

Loading content...

Implementors

Loading content...