Struct json_rpc2::Request [−][src]
pub struct Request { /* fields omitted */ }
Expand description
JSON-RPC request.
Implementations
Create a new request.
Create a new request that expects a reply.
A random number is generated for the message id.
Create a new notification.
The id field is None
.
The mutable id for the request if you need to take it to assign to response.
Determine if the given name matches the request method.
Deserialize and consume the message parameters into type T
.
If this request message has no parameters or the params
payload cannot be converted to T
this will return
Error::InvalidParams
.
Trait Implementations
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 RefUnwindSafe for Request
impl UnwindSafe for Request
Blanket Implementations
Mutably borrows from an owned value. Read more