rpc_router/router/
call_success.rs

1use crate::RpcId;
2use serde_json::Value;
3
4/// The successful response back from a `rpc_router.call...` functions.
5///
6/// NOTE: CallSuccess & CallError
7///       are not designed to be the JSON-RPC Response
8///       or Error, but to provide the necessary context
9///       to build those, as well as the useful `method name`
10///       context for tracing/login.
11#[derive(Debug, Clone)]
12pub struct CallSuccess {
13	pub id: RpcId,
14	pub method: String,
15	pub value: Value,
16}