wtx 0.44.3

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use alloc::boxed::Box;

/// When a rpc call encounters an error.
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[derive(Debug)]
pub struct JsonRpcResponseError {
  /// Indicates the error type that occurred.
  pub code: i32,
  /// Additional information about the error
  #[cfg(feature = "serde_json")]
  pub data: Option<serde_json::Value>,
  /// Short description of the error.
  pub message: Box<str>,
}