pub struct RpcErrorPayload {
pub code: i32,
pub message: String,
}Expand description
The body of a JSON-RPC error reply. Serializes as
{"code": ..., "message": "..."} per the spec.
Fields§
§code: i32§message: StringTrait Implementations§
Source§impl Debug for RpcErrorPayload
impl Debug for RpcErrorPayload
Auto Trait Implementations§
impl Freeze for RpcErrorPayload
impl RefUnwindSafe for RpcErrorPayload
impl Send for RpcErrorPayload
impl Sync for RpcErrorPayload
impl Unpin for RpcErrorPayload
impl UnsafeUnpin for RpcErrorPayload
impl UnwindSafe for RpcErrorPayload
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