rpc-router 0.2.0

JSON RPC Router Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::RpcId;
use serde_json::Value;

/// The successful response back from a `rpc_router.call...` functions.
///
/// NOTE: CallSuccess & CallError
///       are not designed to be the JSON-RPC Response
///       or Error, but to provide the necessary context
///       to build those, as well as the useful `method name`
///       context for tracing/login.
#[derive(Debug, Clone)]
pub struct CallSuccess {
	pub id: RpcId,
	pub method: String,
	pub value: Value,
}