pub struct RpcError {
pub code: i32,
pub message: String,
pub data: Option<Box<RawValue>>,
}
Expand description
A JSONRPC error object
Fields§
§code: i32
The integer identifier of the error
message: String
A string describing the error
data: Option<Box<RawValue>>
Additional data specific to the error
Trait Implementations§
source§impl<'de> Deserialize<'de> for RpcError
impl<'de> Deserialize<'de> for RpcError
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 RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnwindSafe for RpcError
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