Type Alias RpcParams

Source
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§

§1.0.0

None

No value.

§1.0.0

Some(Box<RawValue>)

Some value of type T.

Trait Implementations§

Source§

impl IntoRpcParams for RpcParams

Source§

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.