pub struct JrpcError {
pub code: i64,
pub message: String,
pub data: Value,
}Expand description
A raw JSON-RPC error.
This mirrors the error object defined by the JSON-RPC 2.0 spec.
Fields§
§code: i64§message: String§data: ValueTrait Implementations§
Source§impl<'de> Deserialize<'de> for JrpcError
impl<'de> Deserialize<'de> for JrpcError
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
Auto Trait Implementations§
impl Freeze for JrpcError
impl RefUnwindSafe for JrpcError
impl Send for JrpcError
impl Sync for JrpcError
impl Unpin for JrpcError
impl UnwindSafe for JrpcError
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