Struct jsonrpsee_http_client::v2::response::JsonRpcResponse [−][src]
pub struct JsonRpcResponse<'a, T> { pub jsonrpc: TwoPointZero, pub result: T, pub id: Option<&'a RawValue>, }
JSON-RPC successful response object.
Fields
jsonrpc: TwoPointZero
JSON-RPC version.
result: T
Result.
id: Option<&'a RawValue>
Request ID
Trait Implementations
impl<'a, T> Debug for JsonRpcResponse<'a, T> where
T: Debug,
[src]
impl<'a, T> Debug for JsonRpcResponse<'a, T> where
T: Debug,
[src]impl<'de, 'a, T> Deserialize<'de> for JsonRpcResponse<'a, T> where
'de: 'a,
T: Deserialize<'de>,
[src]
impl<'de, 'a, T> Deserialize<'de> for JsonRpcResponse<'a, T> where
'de: 'a,
T: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<JsonRpcResponse<'a, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<JsonRpcResponse<'a, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<'a, T> Serialize for JsonRpcResponse<'a, T> where
T: Serialize,
[src]
impl<'a, T> Serialize for JsonRpcResponse<'a, T> where
T: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for JsonRpcResponse<'a, T> where
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for JsonRpcResponse<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for JsonRpcResponse<'a, T> where
T: Send,
impl<'a, T> Send for JsonRpcResponse<'a, T> where
T: Send,
impl<'a, T> Sync for JsonRpcResponse<'a, T> where
T: Sync,
impl<'a, T> Sync for JsonRpcResponse<'a, T> where
T: Sync,
impl<'a, T> Unpin for JsonRpcResponse<'a, T> where
T: Unpin,
impl<'a, T> Unpin for JsonRpcResponse<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for JsonRpcResponse<'a, T> where
T: UnwindSafe,
impl<'a, T> UnwindSafe for JsonRpcResponse<'a, T> where
T: UnwindSafe,
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]