Crate ez_jsonrpc_types

Source
Expand description

A transcription of types from the JSON-RPC 2.0 Specification.

When quoted, the specification will appear as blockquoted text, like so.

§Design

  • By default, all structs are owned and spec conformant. This makes simple usage much easier than e.g jsonrpc or jsonrpsee.
  • Most interesting fields are parameterisable in the template module, which you can opt-in to for zero copy/sharing.

Modules§

map
A map of Strings to values (typically Value).
template
Generic structs where you can customize, e.g zerocopy deserialization.

Type Aliases§

Error
JSON-RPC 2.0 Error object.
Id
JSON-RPC 2.0 request correlator.
Map
A map from strings to JSON Values.
MaybeBatchedRequest
See template::MaybeBatchedRequest for specification wording.
MaybeBatchedResponse
See template::MaybeBatchedResponse for specification wording.
Request
A JSON-RPC 2.0 request.
RequestParameters
JSON-RPC 2.0 request parameters (by-name or by-position).
Response
JSON-RPC 2.0 response.
Result
Result type where Err is a JSON-RPC 2.0 Error.