Struct jsonrpsee_types::response::Response
source · pub struct Response<'a, T> {
pub jsonrpc: TwoPointZero,
pub result: T,
pub id: Id<'a>,
}
Expand description
JSON-RPC successful response object as defined in the spec.
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
result: T
Result.
id: Id<'a>
Request ID
Implementations§
Trait Implementations§
source§impl<'de: 'a, 'a, T> Deserialize<'de> for Response<'a, T>where
T: Deserialize<'de>,
impl<'de: 'a, 'a, T> Deserialize<'de> for Response<'a, T>where
T: 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