pub struct TransactionItem {Show 16 fields
pub tx_hash: String,
pub from_address: String,
pub to_address: Option<String>,
pub value: String,
pub successful: Option<bool>,
pub block_height: Option<u64>,
pub block_hash: Option<String>,
pub block_signed_at: Option<String>,
pub gas_price: Option<u64>,
pub gas_limit: Option<u64>,
pub gas_used: Option<u64>,
pub fees_paid: Option<String>,
pub value_quote: Option<f64>,
pub gas_quote: Option<f64>,
pub gas_quote_rate: Option<f64>,
pub log_events: Option<Vec<LogEvent>>,
}Expand description
Represents a transaction item returned by the API.
Fields§
§tx_hash: StringThe transaction hash.
from_address: StringThe sender address.
to_address: Option<String>The recipient address.
value: StringThe transaction value as a string.
successful: Option<bool>Whether the transaction was successful.
block_height: Option<u64>Block height where this transaction was included.
block_hash: Option<String>Block hash where this transaction was included.
block_signed_at: Option<String>Timestamp when the transaction was mined.
gas_price: Option<u64>Gas price used for the transaction.
gas_limit: Option<u64>Gas limit set for the transaction.
gas_used: Option<u64>Gas used by the transaction.
fees_paid: Option<String>Transaction fee paid.
value_quote: Option<f64>Quote value of the transaction.
gas_quote: Option<f64>Quote value of the gas fees.
gas_quote_rate: Option<f64>Quote currency used for calculations.
log_events: Option<Vec<LogEvent>>Log events associated with this transaction.
Trait Implementations§
Source§impl Clone for TransactionItem
impl Clone for TransactionItem
Source§fn clone(&self) -> TransactionItem
fn clone(&self) -> TransactionItem
Returns a duplicate 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 TransactionItem
impl Debug for TransactionItem
Source§impl<'de> Deserialize<'de> for TransactionItem
impl<'de> Deserialize<'de> for TransactionItem
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
Auto Trait Implementations§
impl Freeze for TransactionItem
impl RefUnwindSafe for TransactionItem
impl Send for TransactionItem
impl Sync for TransactionItem
impl Unpin for TransactionItem
impl UnwindSafe for TransactionItem
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