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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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