pub struct JsonRpcResponse {
pub jsonrpc: String,
pub id: RequestId,
pub result: Option<Value>,
}
Expand description
JSON-RPC response message
Fieldsยง
ยงjsonrpc: String
JSON-RPC version (always โ2.0โ)
id: RequestId
Request ID for correlation
result: Option<Value>
Result of the method call
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Clone for JsonRpcResponse
impl Clone for JsonRpcResponse
Sourceยงfn clone(&self) -> JsonRpcResponse
fn clone(&self) -> JsonRpcResponse
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 JsonRpcResponse
impl Debug for JsonRpcResponse
Sourceยงimpl<'de> Deserialize<'de> for JsonRpcResponse
impl<'de> Deserialize<'de> for JsonRpcResponse
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 JsonRpcResponse
impl PartialEq for JsonRpcResponse
Sourceยงimpl Serialize for JsonRpcResponse
impl Serialize for JsonRpcResponse
impl StructuralPartialEq for JsonRpcResponse
Auto Trait Implementationsยง
impl Freeze for JsonRpcResponse
impl RefUnwindSafe for JsonRpcResponse
impl Send for JsonRpcResponse
impl Sync for JsonRpcResponse
impl Unpin for JsonRpcResponse
impl UnwindSafe for JsonRpcResponse
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