Struct jsonrpsee_types::request::Request
source · pub struct Request<'a> {
pub jsonrpc: TwoPointZero,
pub id: Id<'a>,
pub method: Cow<'a, str>,
pub params: Option<&'a RawValue>,
}
Expand description
JSON-RPC request object as defined in the spec.
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
id: Id<'a>
Request ID
method: Cow<'a, str>
Name of the method to be invoked.
params: Option<&'a RawValue>
Parameter values of the request.
Implementations§
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Request<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Request<'a>
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