Struct ckb_jsonrpc_types::CellOutput[][src]

pub struct CellOutput {
    pub capacity: Capacity,
    pub lock: Script,
    pub type_: Option<Script>,
}

The fields of an output cell except the cell data.

Examples

{
  "capacity": "0x2540be400",
  "lock": {
    "args": "0x",
    "code_hash": "0x28e83a1277d48add8e72fadaa9248559e1b632bab2bd60b27955ebc4c03800a5",
    "hash_type": "data"
  },
  "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

impl Clone for CellOutput[src]

impl Debug for CellOutput[src]

impl Default for CellOutput[src]

impl<'de> Deserialize<'de> for CellOutput[src]

impl Eq for CellOutput[src]

impl From<CellOutput> for CellOutput[src]

impl Hash for CellOutput[src]

impl PartialEq<CellOutput> for CellOutput[src]

impl Serialize for CellOutput[src]

impl StructuralEq for CellOutput[src]

impl StructuralPartialEq for CellOutput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,