pub type RpcParams = Option<Box<RawValue>>;
Expand description
The RPC params we’ll return from our implementations of IntoRpcParams
.
Aliased Type§
pub enum RpcParams {
None,
Some(Box<RawValue>),
}
Variants§
Trait Implementations§
Source§impl IntoRpcParams for RpcParams
impl IntoRpcParams for RpcParams
Source§fn 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.