pub struct JSONRPCErrorResponse {
pub jsonrpc: String,
pub error: JSONRPCError,
pub id: Option<JSONRPCId>,
}Expand description
Represents a JSON-RPC 2.0 Error Response object.
Fields§
§jsonrpc: StringThe version of the JSON-RPC protocol. MUST be exactly “2.0”.
error: JSONRPCErrorAn object describing the error that occurred.
id: Option<JSONRPCId>The identifier established by the client.
Trait Implementations§
Source§impl Clone for JSONRPCErrorResponse
impl Clone for JSONRPCErrorResponse
Source§fn clone(&self) -> JSONRPCErrorResponse
fn clone(&self) -> JSONRPCErrorResponse
Returns a duplicate 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 JSONRPCErrorResponse
impl Debug for JSONRPCErrorResponse
Source§impl<'de> Deserialize<'de> for JSONRPCErrorResponse
impl<'de> Deserialize<'de> for JSONRPCErrorResponse
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 JSONRPCErrorResponse
impl RefUnwindSafe for JSONRPCErrorResponse
impl Send for JSONRPCErrorResponse
impl Sync for JSONRPCErrorResponse
impl Unpin for JSONRPCErrorResponse
impl UnwindSafe for JSONRPCErrorResponse
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