[][src]Trait casper_node::rpcs::RpcWithParams

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

    const METHOD: &'static str;
}

A JSON-RPC requiring the "params" field to be present.

Associated Types

type RequestParams: Serialize + for<'de> Deserialize<'de> + Send + 'static

The JSON-RPC request's "params" type.

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...