pub struct RpcErrorResponse {
pub id: RpcId,
pub error: RpcError,
}Expand description
Holds the components of a JSON-RPC error response.
Fields§
§id: RpcIdThe request ID this response corresponds to. Can be Null if the request ID couldn’t be determined.
error: RpcErrorThe error object containing details about the failure.
Trait Implementations§
Source§impl Clone for RpcErrorResponse
impl Clone for RpcErrorResponse
Source§fn clone(&self) -> RpcErrorResponse
fn clone(&self) -> RpcErrorResponse
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 RpcErrorResponse
impl Debug for RpcErrorResponse
Source§impl<'de> Deserialize<'de> for RpcErrorResponse
impl<'de> Deserialize<'de> for RpcErrorResponse
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 RpcErrorResponse
impl PartialEq for RpcErrorResponse
Source§impl Serialize for RpcErrorResponse
impl Serialize for RpcErrorResponse
impl StructuralPartialEq for RpcErrorResponse
Auto Trait Implementations§
impl Freeze for RpcErrorResponse
impl RefUnwindSafe for RpcErrorResponse
impl Send for RpcErrorResponse
impl Sync for RpcErrorResponse
impl Unpin for RpcErrorResponse
impl UnwindSafe for RpcErrorResponse
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