hyperlane-plugin-rpc 22.9.0

A JSON-RPC 2.0 server plugin for the Hyperlane framework with async method routing, batch dispatch, notification handling, and configurable payload and batch DoS bounds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

/// JSON-RPC 2.0 request/response correlation identifier.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
#[serde(untagged)]
pub enum RpcId {
    /// Integer identifier.
    Number(i64),
    /// String identifier.
    Text(String),
    /// Explicit null identifier.
    #[default]
    Null,
}