pub struct JsonrpcErrorError {
pub code: i64,
pub data: Option<Value>,
pub message: String,
}
Expand description
JsonrpcErrorError
JSON schema
{
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"description": "The error type that occurred.",
"type": "integer"
},
"data": {
"description": "Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.)."
},
"message": {
"description": "A short description of the error. The message SHOULD be limited to a concise single sentence.",
"type": "string"
}
}
}
Fields§
§code: i64
The error type that occurred.
data: Option<Value>
Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
message: String
A short description of the error. The message SHOULD be limited to a concise single sentence.
Trait Implementations§
Source§impl Clone for JsonrpcErrorError
impl Clone for JsonrpcErrorError
Source§fn clone(&self) -> JsonrpcErrorError
fn clone(&self) -> JsonrpcErrorError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonrpcErrorError
impl Debug for JsonrpcErrorError
Source§impl<'de> Deserialize<'de> for JsonrpcErrorError
impl<'de> Deserialize<'de> for JsonrpcErrorError
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 From<&JsonrpcErrorError> for JsonrpcErrorError
impl From<&JsonrpcErrorError> for JsonrpcErrorError
Source§fn from(value: &JsonrpcErrorError) -> Self
fn from(value: &JsonrpcErrorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JsonrpcErrorError
impl PartialEq for JsonrpcErrorError
Source§impl Serialize for JsonrpcErrorError
impl Serialize for JsonrpcErrorError
impl StructuralPartialEq for JsonrpcErrorError
Auto Trait Implementations§
impl Freeze for JsonrpcErrorError
impl RefUnwindSafe for JsonrpcErrorError
impl Send for JsonrpcErrorError
impl Sync for JsonrpcErrorError
impl Unpin for JsonrpcErrorError
impl UnwindSafe for JsonrpcErrorError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more