Struct ckb_types::core::TransactionMeta
source · pub struct TransactionMeta { /* private fields */ }
Expand description
TODO(doc): @quake
Implementations§
source§impl TransactionMeta
impl TransactionMeta
sourcepub fn new(
block_number: u64,
epoch_number: u64,
block_hash: Byte32,
outputs_count: usize,
all_dead: bool
) -> TransactionMeta
pub fn new( block_number: u64, epoch_number: u64, block_hash: Byte32, outputs_count: usize, all_dead: bool ) -> TransactionMeta
TODO(doc): @quake
sourcepub fn new_cellbase(
block_number: u64,
epoch_number: u64,
block_hash: Byte32,
outputs_count: usize,
all_dead: bool
) -> Self
pub fn new_cellbase( block_number: u64, epoch_number: u64, block_hash: Byte32, outputs_count: usize, all_dead: bool ) -> Self
New cellbase transaction
sourcepub fn is_cellbase(&self) -> bool
pub fn is_cellbase(&self) -> bool
Returns true if it is a cellbase transaction
sourcepub fn block_number(&self) -> u64
pub fn block_number(&self) -> u64
TODO(doc): @quake
sourcepub fn epoch_number(&self) -> u64
pub fn epoch_number(&self) -> u64
TODO(doc): @quake
sourcepub fn block_hash(&self) -> Byte32
pub fn block_hash(&self) -> Byte32
TODO(doc): @quake
sourcepub fn unset_dead(&mut self, index: usize)
pub fn unset_dead(&mut self, index: usize)
TODO(doc): @quake
Trait Implementations§
source§impl Clone for TransactionMeta
impl Clone for TransactionMeta
source§fn clone(&self) -> TransactionMeta
fn clone(&self) -> TransactionMeta
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionMeta
impl Debug for TransactionMeta
source§impl Default for TransactionMeta
impl Default for TransactionMeta
source§fn default() -> TransactionMeta
fn default() -> TransactionMeta
Returns the “default value” for a type. Read more
source§impl PartialEq for TransactionMeta
impl PartialEq for TransactionMeta
source§fn eq(&self, other: &TransactionMeta) -> bool
fn eq(&self, other: &TransactionMeta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TransactionMeta
impl StructuralPartialEq for TransactionMeta
Auto Trait Implementations§
impl !Freeze for TransactionMeta
impl RefUnwindSafe for TransactionMeta
impl Send for TransactionMeta
impl Sync for TransactionMeta
impl Unpin for TransactionMeta
impl UnwindSafe for TransactionMeta
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