Struct ckb_types::core::TransactionInfo
source · pub struct TransactionInfo {
pub block_hash: Byte32,
pub block_number: BlockNumber,
pub block_epoch: EpochNumberWithFraction,
pub index: usize,
}
Expand description
TODO(doc): @quake
Fields§
§block_hash: Byte32
TODO(doc): @quake
block_number: BlockNumber
TODO(doc): @quake
block_epoch: EpochNumberWithFraction
TODO(doc): @quake
index: usize
TODO(doc): @quake
Implementations§
source§impl TransactionInfo
impl TransactionInfo
sourcepub fn key(&self) -> TransactionKey
pub fn key(&self) -> TransactionKey
TODO(doc): @quake
sourcepub fn new(
block_number: BlockNumber,
block_epoch: EpochNumberWithFraction,
block_hash: Byte32,
index: usize
) -> Self
pub fn new( block_number: BlockNumber, block_epoch: EpochNumberWithFraction, block_hash: Byte32, index: usize ) -> Self
TODO(doc): @quake
sourcepub fn is_cellbase(&self) -> bool
pub fn is_cellbase(&self) -> bool
TODO(doc): @quake
sourcepub fn is_genesis(&self) -> bool
pub fn is_genesis(&self) -> bool
TODO(doc): @quake
Trait Implementations§
source§impl Clone for TransactionInfo
impl Clone for TransactionInfo
source§fn clone(&self) -> TransactionInfo
fn clone(&self) -> TransactionInfo
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 TransactionInfo
impl Debug for TransactionInfo
source§impl Pack<TransactionInfo> for TransactionInfo
impl Pack<TransactionInfo> for TransactionInfo
source§fn pack(&self) -> TransactionInfo
fn pack(&self) -> TransactionInfo
Packs a rust type into binary data.
source§impl PartialEq<TransactionInfo> for TransactionInfo
impl PartialEq<TransactionInfo> for TransactionInfo
source§fn eq(&self, other: &TransactionInfo) -> bool
fn eq(&self, other: &TransactionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Unpack<TransactionInfo> for TransactionInfo
impl Unpack<TransactionInfo> for TransactionInfo
source§fn unpack(&self) -> TransactionInfo
fn unpack(&self) -> TransactionInfo
Unpack binary data into rust types.
source§impl<'r> Unpack<TransactionInfo> for TransactionInfoReader<'r>
impl<'r> Unpack<TransactionInfo> for TransactionInfoReader<'r>
source§fn unpack(&self) -> TransactionInfo
fn unpack(&self) -> TransactionInfo
Unpack binary data into rust types.
impl Eq for TransactionInfo
impl StructuralEq for TransactionInfo
impl StructuralPartialEq for TransactionInfo
Auto Trait Implementations§
impl RefUnwindSafe for TransactionInfo
impl Send for TransactionInfo
impl Sync for TransactionInfo
impl Unpin for TransactionInfo
impl UnwindSafe for TransactionInfo
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