Struct hypersync_client::simple_types::Transaction
source · pub struct Transaction {Show 34 fields
pub block_hash: Option<Hash>,
pub block_number: Option<BlockNumber>,
pub from: Option<Address>,
pub gas: Option<Quantity>,
pub gas_price: Option<Quantity>,
pub hash: Option<Hash>,
pub input: Option<Data>,
pub nonce: Option<Quantity>,
pub to: Option<Address>,
pub transaction_index: Option<TransactionIndex>,
pub value: Option<Quantity>,
pub v: Option<Quantity>,
pub r: Option<Quantity>,
pub s: Option<Quantity>,
pub y_parity: Option<Quantity>,
pub max_priority_fee_per_gas: Option<Quantity>,
pub max_fee_per_gas: Option<Quantity>,
pub chain_id: Option<Quantity>,
pub access_list: Option<Vec<AccessList>>,
pub max_fee_per_blob_gas: Option<Quantity>,
pub blob_versioned_hashes: Option<Vec<Hash>>,
pub cumulative_gas_used: Option<Quantity>,
pub effective_gas_price: Option<Quantity>,
pub gas_used: Option<Quantity>,
pub contract_address: Option<Address>,
pub logs_bloom: Option<BloomFilter>,
pub kind: Option<TransactionType>,
pub root: Option<Hash>,
pub status: Option<TransactionStatus>,
pub l1_fee: Option<Quantity>,
pub l1_gas_price: Option<Quantity>,
pub l1_gas_used: Option<Quantity>,
pub l1_fee_scalar: Option<Quantity>,
pub gas_used_for_l1: Option<Quantity>,
}Fields§
§block_hash: Option<Hash>§block_number: Option<BlockNumber>§from: Option<Address>§gas: Option<Quantity>§gas_price: Option<Quantity>§hash: Option<Hash>§input: Option<Data>§nonce: Option<Quantity>§to: Option<Address>§transaction_index: Option<TransactionIndex>§value: Option<Quantity>§v: Option<Quantity>§r: Option<Quantity>§s: Option<Quantity>§y_parity: Option<Quantity>§max_priority_fee_per_gas: Option<Quantity>§max_fee_per_gas: Option<Quantity>§chain_id: Option<Quantity>§access_list: Option<Vec<AccessList>>§max_fee_per_blob_gas: Option<Quantity>§blob_versioned_hashes: Option<Vec<Hash>>§cumulative_gas_used: Option<Quantity>§effective_gas_price: Option<Quantity>§gas_used: Option<Quantity>§contract_address: Option<Address>§logs_bloom: Option<BloomFilter>§kind: Option<TransactionType>§root: Option<Hash>§status: Option<TransactionStatus>§l1_fee: Option<Quantity>§l1_gas_price: Option<Quantity>§l1_gas_used: Option<Quantity>§l1_fee_scalar: Option<Quantity>§gas_used_for_l1: Option<Quantity>Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl Default for Transaction
impl Default for Transaction
source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 FromArrow for Transaction
impl FromArrow for Transaction
fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
source§impl PartialEq for Transaction
impl PartialEq for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Transaction
impl Serialize for Transaction
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more