Struct ckb_cli_plugin_protocol::JsonrpcRequest [−][src]
pub struct JsonrpcRequest {
pub jsonrpc: String,
pub id: Value,
pub method: String,
pub params: Vec<Value>,
}
Expand description
A JSONRPC request object
Fields
jsonrpc: String
jsonrpc field, MUST be “2.0”
id: Value
Identifier for this Request, which should appear in the response
method: String
The name of the RPC call
params: Vec<Value>
Parameters to the RPC call
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for JsonrpcRequest
impl Send for JsonrpcRequest
impl Sync for JsonrpcRequest
impl Unpin for JsonrpcRequest
impl UnwindSafe for JsonrpcRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more