Crate json_rpc_types
source ·Expand description
JSON-RPCv2 data types
This library provides generic type definitions to serialize/deserialize JSON-RPC request/responses. It doesn’t contain implementation itself as it is intended to be used as building block of actual implementation.
Features
id-str-only
- Forces ID deserialization to assume string only.id-number-only
- Forces ID deserialization to assume number only.
Re-exports
pub use str_buf;
Structs
- Error object, defined by JSON-RPC
- Request representation.
- Response representation.
Enums
- JSON-RPC error code
- Request identfier
- Protocol Version