Enum ckb_jsonrpc_types::ResponseFormat [−][src]
pub enum ResponseFormat<V, P> {
Json(V),
Hex(P),
}Expand description
This is a wrapper for JSON serialization to select the format between Json and Hex.
Examples
ResponseFormat<BlockView, Block> returns the block in its Json format or molecule serialized
Hex format.
Variants
Json(V)
Serializes V as Json
Hex(P)
Serializes P as Hex.
P is first serialized by molecule into binary.
The binary is then encoded as a 0x-prefixed hex string.
