Struct ckb_cli_plugin_protocol::JsonrpcResponse [−][src]
pub struct JsonrpcResponse {
pub jsonrpc: String,
pub id: Value,
pub result: Option<Value>,
pub error: Option<JsonrpcError>,
}Expand description
A JSONRPC response object
Fields
jsonrpc: Stringjsonrpc field, MUST be “2.0”
id: ValueIdentifier for this Request, which should match that of the request
result: Option<Value>A result if there is one, or null
error: Option<JsonrpcError>An error if there is one, or null
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.
Auto Trait Implementations
impl RefUnwindSafe for JsonrpcResponseimpl Send for JsonrpcResponseimpl Sync for JsonrpcResponseimpl Unpin for JsonrpcResponseimpl UnwindSafe for JsonrpcResponseBlanket 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