Struct primitives::transaction_index::TransactionIndex
source · pub struct TransactionIndex {
pub block_hash: H256,
pub real_index: usize,
pub is_phantom: bool,
pub rpc_index: Option<usize>,
}
Expand description
Represents address of certain transaction within block
Fields§
§block_hash: H256
Block hash
real_index: usize
Transaction index within the block
is_phantom: bool
true when this index belongs to a phantom transaction
rpc_index: Option<usize>
Transaction index to be used in RPC responses
Trait Implementations§
source§impl Clone for TransactionIndex
impl Clone for TransactionIndex
source§fn clone(&self) -> TransactionIndex
fn clone(&self) -> TransactionIndex
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 TransactionIndex
impl Debug for TransactionIndex
source§impl Decodable for TransactionIndex
impl Decodable for TransactionIndex
source§impl Default for TransactionIndex
impl Default for TransactionIndex
source§fn default() -> TransactionIndex
fn default() -> TransactionIndex
Returns the “default value” for a type. Read more
source§impl Encodable for TransactionIndex
impl Encodable for TransactionIndex
source§impl Hash for TransactionIndex
impl Hash for TransactionIndex
source§impl MallocSizeOf for TransactionIndex
impl MallocSizeOf for TransactionIndex
source§impl PartialEq for TransactionIndex
impl PartialEq for TransactionIndex
source§fn eq(&self, other: &TransactionIndex) -> bool
fn eq(&self, other: &TransactionIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TransactionIndex
impl StructuralPartialEq for TransactionIndex
Auto Trait Implementations§
impl RefUnwindSafe for TransactionIndex
impl Send for TransactionIndex
impl Sync for TransactionIndex
impl Unpin for TransactionIndex
impl UnwindSafe for TransactionIndex
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