pub trait IntoRpcParams {
// Required method
fn into_rpc_params(self) -> RpcParams;
}
Expand description
A trait which is implemented for anything which can be turned into valid RPC parameters.
Required Methods§
Sourcefn into_rpc_params(self) -> RpcParams
fn into_rpc_params(self) -> RpcParams
Return the params. These are expected to be encoded to JSON,
and take the form of either an array or object of parameters.
Can return None
to avoid allocation when returning no parameters.