Skip to main content

JsonRpcId

Type Alias JsonRpcId 

Source
pub type JsonRpcId = Option<Value>;
Expand description

A JSON-RPC 2.0 request/response identifier.

Per spec, valid values are a string, a number, or null. When the field is absent entirely (notifications), represent as None.

Aliased Type§

pub enum JsonRpcId {
    None,
    Some(Value),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Value)

Some value of type T.