Crate jsonrpc_core_types

Source
Expand description

JSON-RPC types

Re-exports§

pub use self::error::Error;
pub use self::error::ErrorCode;
pub use self::id::Id;
pub use self::params::Params;
pub use self::request::Call;
pub use self::request::MethodCall;
pub use self::request::Notification;
pub use self::request::Request;
pub use self::response::Failure;
pub use self::response::Output;
pub use self::response::Response;
pub use self::response::Success;
pub use self::version::Version;
pub use serde;
pub use serde_json;

Modules§

error
jsonrpc errors
id
jsonrpc id field
params
jsonrpc params field
request
jsonrpc request
response
jsonrpc response
version
jsonrpc version field

Enums§

Value
Represents any valid JSON value.

Functions§

serde_from_str
workaround for https://github.com/serde-rs/json/issues/505 Arbitrary precision confuses serde when deserializing into untagged enums, this is a workaround
to_string
Serialize the given data structure as a String of JSON.
to_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.

Type Aliases§

Result
A Result type.