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: Stringjsonrpc field, MUST be “2.0”
id: ValueIdentifier for this Request, which should appear in the response
method: StringThe 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 JsonrpcRequestimpl Send for JsonrpcRequestimpl Sync for JsonrpcRequestimpl Unpin for JsonrpcRequestimpl UnwindSafe for JsonrpcRequestBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V