pub struct JsonRpcErrorObject {
pub code: i64,
pub message: String,
pub data: Option<Value>,
}Expand description
Wire representation of a JSON-RPC error object.
Fields§
§code: i64Numeric JSON-RPC error code.
message: StringPublic error message, with the configured credential redacted.
data: Option<Value>Optional structured error data.
Trait Implementations§
Source§impl Clone for JsonRpcErrorObject
impl Clone for JsonRpcErrorObject
Source§impl Debug for JsonRpcErrorObject
impl Debug for JsonRpcErrorObject
Source§impl<'de> Deserialize<'de> for JsonRpcErrorObject
impl<'de> Deserialize<'de> for JsonRpcErrorObject
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 PartialEq for JsonRpcErrorObject
impl PartialEq for JsonRpcErrorObject
Source§impl Serialize for JsonRpcErrorObject
impl Serialize for JsonRpcErrorObject
impl StructuralPartialEq for JsonRpcErrorObject
Auto Trait Implementations§
impl Freeze for JsonRpcErrorObject
impl RefUnwindSafe for JsonRpcErrorObject
impl Send for JsonRpcErrorObject
impl Sync for JsonRpcErrorObject
impl Unpin for JsonRpcErrorObject
impl UnsafeUnpin for JsonRpcErrorObject
impl UnwindSafe for JsonRpcErrorObject
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