[][src]Struct ckb_types::core::cell::CellMeta

pub struct CellMeta {
    pub cell_output: CellOutput,
    pub out_point: OutPoint,
    pub transaction_info: Option<TransactionInfo>,
    pub data_bytes: u64,
    pub mem_cell_data: Option<(Bytes, Byte32)>,
}

TODO(doc): @quake

Fields

cell_output: CellOutput

TODO(doc): @quake

out_point: OutPoint

TODO(doc): @quake

transaction_info: Option<TransactionInfo>

TODO(doc): @quake

data_bytes: u64

TODO(doc): @quake

mem_cell_data: Option<(Bytes, Byte32)>

In memory cell data and its hash A live cell either exists in memory or DB must check DB if this field is None

Implementations

impl CellMeta[src]

pub fn is_cellbase(&self) -> bool[src]

TODO(doc): @quake

pub fn capacity(&self) -> Capacity[src]

TODO(doc): @quake

pub fn occupied_capacity(&self) -> CapacityResult<Capacity>[src]

TODO(doc): @quake

pub fn is_lack_of_capacity(&self) -> CapacityResult<bool>[src]

TODO(doc): @quake

Trait Implementations

impl Clone for CellMeta[src]

impl Debug for CellMeta[src]

impl Default for CellMeta[src]

impl Eq for CellMeta[src]

impl PartialEq<CellMeta> for CellMeta[src]

impl StructuralEq for CellMeta[src]

impl StructuralPartialEq for CellMeta[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> 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>,