Struct jsonrpc_rs::Error
source · Expand description
When a rpc call encounters an error, the Response Object MUST contain the error member with a value that is a Object.
Fields§
§code: ErrorCodeA Number that indicates the error type that occurred.
message: SA String providing a short description of the error. The message SHOULD be limited to a concise single sentence
data: Option<D>A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
Implementations§
Trait Implementations§
source§impl<'de, S, D> Deserialize<'de> for Error<S, D>where
S: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, S, D> Deserialize<'de> for Error<S, D>where
S: Deserialize<'de>,
D: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S, D> Error for Error<S, D>where
Self: Debug + Display,
impl<S, D> Error for Error<S, D>where
Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CompleteQError> for Error<String, Value>
impl From<CompleteQError> for Error<String, Value>
source§fn from(err: CompleteQError) -> Self
fn from(err: CompleteQError) -> Self
Converts to this type from the input type.