pub struct JsonRpcResponse<Res> {
pub jsonrpc: String,
pub id: u64,
pub result: Option<Res>,
pub error: Option<Value>,
}Available on crate feature
with-jsonrpc only.Fields§
§jsonrpc: String§id: u64§result: Option<Res>§error: Option<Value>Trait Implementations§
Source§impl<Res: Debug> Debug for JsonRpcResponse<Res>
impl<Res: Debug> Debug for JsonRpcResponse<Res>
Source§impl<'de, Res> Deserialize<'de> for JsonRpcResponse<Res>where
Res: Deserialize<'de>,
impl<'de, Res> Deserialize<'de> for JsonRpcResponse<Res>where
Res: Deserialize<'de>,
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<Res> Freeze for JsonRpcResponse<Res>where
Res: Freeze,
impl<Res> RefUnwindSafe for JsonRpcResponse<Res>where
Res: RefUnwindSafe,
impl<Res> Send for JsonRpcResponse<Res>where
Res: Send,
impl<Res> Sync for JsonRpcResponse<Res>where
Res: Sync,
impl<Res> Unpin for JsonRpcResponse<Res>where
Res: Unpin,
impl<Res> UnwindSafe for JsonRpcResponse<Res>where
Res: UnwindSafe,
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