Skip to main content

JsonRpcId

Type Alias JsonRpcId 

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

A JSON-RPC 2.0 response identifier.

Per spec, a response always carries an id member: the value of the request’s id, or null when the request id could not be determined. None serializes as null.

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.