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

Tuple Fields of Error

0: JsonrpcError
Ok
PluginConfig(PluginConfig)

Tuple Fields of PluginConfig

0: PluginConfig
JsonValue(Value)

Tuple Fields of JsonValue

0: Value
Boolean(bool)

Tuple Fields of Boolean

0: bool
String(String)

Tuple Fields of String

0: String
Integer64(u64)

Tuple Fields of Integer64

0: u64
H256Opt(Option<H256>)

Tuple Fields of H256Opt

0: Option<H256>
H160(H160)

Tuple Fields of H160

0: H160
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>>
BlockViewOpt(Box<Option<BlockView>>)

Tuple Fields of BlockViewOpt

0: Box<Option<BlockView>>
Bytes(JsonBytes)

Tuple Fields of Bytes

0: JsonBytes
BytesVec(Vec<JsonBytes>)

Tuple Fields of BytesVec

0: Vec<JsonBytes>

Tuple Fields of Callback

0: CallbackResponse
MasterPrivateKey

Fields of MasterPrivateKey

privkey: JsonByteschain_code: JsonBytes
DerivedKeySet

Fields of DerivedKeySet

external: Vec<(String, H160)>change: Vec<(String, H160)>
LiveCells(Vec<LiveCellInfo>)

Tuple Fields of LiveCells

0: Vec<LiveCellInfo>
TopN(Vec<(H256, Option<Script>, u64)>)

Tuple Fields of TopN

0: Vec<(H256, Option<Script>, u64)>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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