Struct ckb_jsonrpc_types::CellOutput [−][src]
Expand description
The fields of an output cell except the cell data.
Examples
{
"capacity": "0x2540be400",
"lock": {
"code_hash": "0x28e83a1277d48add8e72fadaa9248559e1b632bab2bd60b27955ebc4c03800a5",
"hash_type": "data",
"args": "0x"
},
"type": null
}
Fields
capacity: Capacity
The cell capacity.
The capacity of a cell is the value of the cell in Shannons. It is also the upper limit of the cell occupied storage size where every 100,000,000 Shannons give 1-byte storage.
lock: Script
The lock script.
type_: Option<Script>
The optional type script.
The JSON field name is “type”.
Trait Implementations
Returns the “default value” for a type. Read more
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.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CellOutput
impl Send for CellOutput
impl Sync for CellOutput
impl Unpin for CellOutput
impl UnwindSafe for CellOutput
Blanket Implementations
Mutably borrows from an owned value. Read more