pub struct IndexedTransaction(/* private fields */);Implementations§
source§impl IndexedTransaction
impl IndexedTransaction
pub fn hash(&self) -> H256
pub fn nonce(&self) -> U256
pub fn block_hash(&self) -> Option<H256>
pub fn block_number(&self) -> Option<U64>
pub fn transaction_index(&self) -> Option<U64>
pub fn _from(&self) -> Address
pub fn to(&self) -> Option<Address>
pub fn value(&self) -> U256
pub fn gas_price(&self) -> Option<U256>
pub fn gas(&self) -> U256
pub fn input(&self) -> &Bytes
pub fn v(&self) -> U64
pub fn r(&self) -> U256
pub fn s(&self) -> U256
pub fn transaction_type(&self) -> Option<U64>
pub fn max_fee_per_gas(&self) -> Option<U256>
pub fn max_priority_fee_per_gas(&self) -> Option<U256>
sourcepub fn contract_creation(&self) -> bool
pub fn contract_creation(&self) -> bool
Determines if the transaction is creating a contract.
Trait Implementations§
source§impl Clone for IndexedTransaction
impl Clone for IndexedTransaction
source§fn clone(&self) -> IndexedTransaction
fn clone(&self) -> IndexedTransaction
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 IndexedTransaction
impl Debug for IndexedTransaction
source§impl Default for IndexedTransaction
impl Default for IndexedTransaction
source§fn default() -> IndexedTransaction
fn default() -> IndexedTransaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IndexedTransaction
impl<'de> Deserialize<'de> for IndexedTransaction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<IndexedTransaction> for Contract
impl From<IndexedTransaction> for Contract
source§fn from(transaction: IndexedTransaction) -> Self
fn from(transaction: IndexedTransaction) -> Self
Converts to this type from the input type.
source§impl From<Transaction> for IndexedTransaction
impl From<Transaction> for IndexedTransaction
source§fn from(tx: Transaction) -> Self
fn from(tx: Transaction) -> Self
Converts to this type from the input type.
source§impl<'a, R: Row> FromRow<'a, R> for IndexedTransactionwhere
usize: ColumnIndex<R>,
Transaction: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for IndexedTransactionwhere
usize: ColumnIndex<R>,
Transaction: Decode<'a, R::Database> + Type<R::Database>,
source§impl PartialEq for IndexedTransaction
impl PartialEq for IndexedTransaction
source§fn eq(&self, other: &IndexedTransaction) -> bool
fn eq(&self, other: &IndexedTransaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for IndexedTransaction
impl Serialize for IndexedTransaction
impl Eq for IndexedTransaction
impl Insertable for IndexedTransaction
impl StructuralEq for IndexedTransaction
impl StructuralPartialEq for IndexedTransaction
Auto Trait Implementations§
impl RefUnwindSafe for IndexedTransaction
impl Send for IndexedTransaction
impl Sync for IndexedTransaction
impl Unpin for IndexedTransaction
impl UnwindSafe for IndexedTransaction
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.