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>,
pub mem_cell_data_hash: Option<Byte32>,
}
Expand description
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>
In memory cell data A live cell either exists in memory or DB must check DB if this field is None
mem_cell_data_hash: Option<Byte32>
memory cell data hash A live cell either exists in memory or DB must check DB if this field is None
Implementations§
source§impl CellMeta
impl CellMeta
sourcepub fn is_cellbase(&self) -> bool
pub fn is_cellbase(&self) -> bool
TODO(doc): @quake
sourcepub fn occupied_capacity(&self) -> CapacityResult<Capacity>
pub fn occupied_capacity(&self) -> CapacityResult<Capacity>
TODO(doc): @quake
sourcepub fn is_lack_of_capacity(&self) -> CapacityResult<bool>
pub fn is_lack_of_capacity(&self) -> CapacityResult<bool>
TODO(doc): @quake
Trait Implementations§
source§impl PartialEq for CellMeta
impl PartialEq for CellMeta
impl Eq for CellMeta
impl StructuralEq for CellMeta
impl StructuralPartialEq for CellMeta
Auto Trait Implementations§
impl RefUnwindSafe for CellMeta
impl Send for CellMeta
impl Sync for CellMeta
impl Unpin for CellMeta
impl UnwindSafe for CellMeta
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more