Struct ckb_jsonrpc_types::JsonBytes [−][src]
pub struct JsonBytes(_);Expand description
Variable-length binary encoded as a 0x-prefixed hex string in JSON.
Example
| JSON | Binary |
|---|---|
| “0x” | Empty binary |
| “0x00” | Single byte 0 |
| “0x636b62” | 3 bytes, UTF-8 encoding of ckb |
| “00” | Invalid, 0x is required |
| “0x0” | Invalid, each byte requires 2 digits |
Implementations
Creates the JsonBytes from Bytes.
Converts into Bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JsonBytes
impl UnwindSafe for JsonBytes
Blanket Implementations
Mutably borrows from an owned value. Read more