pub struct JsonRpcErrorObject {
pub code: i64,
pub message: String,
pub data: Option<Value>,
}Expand description
Inbound JSON-RPC 2.0 error object.
Fields§
§code: i64§message: String§data: Option<Value>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 Forget for JsonRpcErrorObject
impl Freeze for JsonRpcErrorObjectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for JsonRpcErrorObject
impl RefUnwindSafe for JsonRpcErrorObject
impl Send for JsonRpcErrorObject
impl Sync for JsonRpcErrorObject
impl Unpin for JsonRpcErrorObject
impl UnsafeUnpin for JsonRpcErrorObjectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
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