Enum ckb_cli_plugin_protocol::PluginResponse [−][src]
pub enum PluginResponse {
Show 20 variants
Error(JsonrpcError),
Ok,
PluginConfig(PluginConfig),
JsonValue(Value),
Boolean(bool),
String(String),
Integer64(u64),
H256Opt(Option<H256>),
H160(H160),
H160Vec(Vec<H160>),
HeaderView(Box<HeaderView>),
HeaderViewOpt(Box<Option<HeaderView>>),
BlockViewOpt(Box<Option<BlockView>>),
Bytes(JsonBytes),
BytesVec(Vec<JsonBytes>),
Callback(CallbackResponse),
MasterPrivateKey {
privkey: JsonBytes,
chain_code: JsonBytes,
},
DerivedKeySet {
external: Vec<(String, H160)>,
change: Vec<(String, H160)>,
},
LiveCells(Vec<LiveCellInfo>),
TopN(Vec<(H256, Option<Script>, u64)>),
}Variants
Error(JsonrpcError)Tuple Fields of Error
0: JsonrpcErrorPluginConfig(PluginConfig)Tuple Fields of PluginConfig
0: PluginConfigJsonValue(Value)Tuple Fields of JsonValue
0: ValueBoolean(bool)Tuple Fields of Boolean
0: boolString(String)Tuple Fields of String
0: StringInteger64(u64)Tuple Fields of Integer64
0: u64H256Opt(Option<H256>)Tuple Fields of H256Opt
0: Option<H256>H160Vec(Vec<H160>)Tuple Fields of H160Vec
0: Vec<H160>HeaderView(Box<HeaderView>)Tuple Fields of HeaderView
0: Box<HeaderView>HeaderViewOpt(Box<Option<HeaderView>>)Tuple Fields of HeaderViewOpt
0: Box<Option<HeaderView>>Bytes(JsonBytes)Tuple Fields of Bytes
0: JsonBytesCallback(CallbackResponse)Tuple Fields of Callback
LiveCells(Vec<LiveCellInfo>)Tuple Fields of LiveCells
0: Vec<LiveCellInfo>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 PluginResponse
impl Send for PluginResponse
impl Sync for PluginResponse
impl Unpin for PluginResponse
impl UnwindSafe for PluginResponse
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