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 JsonrpcResponse
impl Send for JsonrpcResponse
impl Sync for JsonrpcResponse
impl Unpin for JsonrpcResponse
impl UnwindSafe for JsonrpcResponse
Blanket Implementations
Mutably borrows from an owned value. 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