#[non_exhaustive]pub struct TransactionEvent {
pub network: QueryNetwork,
pub transaction_hash: String,
pub event_type: QueryTransactionEventType,
pub from: Option<String>,
pub to: Option<String>,
pub value: Option<String>,
pub contract_address: Option<String>,
pub token_id: Option<String>,
pub transaction_id: Option<String>,
pub vout_index: Option<i32>,
}
Expand description
The container for the properties of a transaction event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.network: QueryNetwork
The blockchain network where the transaction occurred.
transaction_hash: String
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
event_type: QueryTransactionEventType
The type of transaction event.
from: Option<String>
The wallet address initiating the transaction. It can either be a public key or a contract.
to: Option<String>
The wallet address receiving the transaction. It can either be a public key or a contract.
value: Option<String>
The value that was transacted.
contract_address: Option<String>
The blockchain address. for the contract
token_id: Option<String>
The unique identifier for the token involved in the transaction.
transaction_id: Option<String>
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
vout_index: Option<i32>
The position of the vout in the transaction output list.
Implementations§
source§impl TransactionEvent
impl TransactionEvent
sourcepub fn network(&self) -> &QueryNetwork
pub fn network(&self) -> &QueryNetwork
The blockchain network where the transaction occurred.
sourcepub fn transaction_hash(&self) -> &str
pub fn transaction_hash(&self) -> &str
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn event_type(&self) -> &QueryTransactionEventType
pub fn event_type(&self) -> &QueryTransactionEventType
The type of transaction event.
sourcepub fn from(&self) -> Option<&str>
pub fn from(&self) -> Option<&str>
The wallet address initiating the transaction. It can either be a public key or a contract.
sourcepub fn to(&self) -> Option<&str>
pub fn to(&self) -> Option<&str>
The wallet address receiving the transaction. It can either be a public key or a contract.
sourcepub fn contract_address(&self) -> Option<&str>
pub fn contract_address(&self) -> Option<&str>
The blockchain address. for the contract
sourcepub fn token_id(&self) -> Option<&str>
pub fn token_id(&self) -> Option<&str>
The unique identifier for the token involved in the transaction.
sourcepub fn transaction_id(&self) -> Option<&str>
pub fn transaction_id(&self) -> Option<&str>
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn vout_index(&self) -> Option<i32>
pub fn vout_index(&self) -> Option<i32>
The position of the vout in the transaction output list.
source§impl TransactionEvent
impl TransactionEvent
sourcepub fn builder() -> TransactionEventBuilder
pub fn builder() -> TransactionEventBuilder
Creates a new builder-style object to manufacture TransactionEvent
.
Trait Implementations§
source§impl Clone for TransactionEvent
impl Clone for TransactionEvent
source§fn clone(&self) -> TransactionEvent
fn clone(&self) -> TransactionEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionEvent
impl Debug for TransactionEvent
source§impl PartialEq for TransactionEvent
impl PartialEq for TransactionEvent
source§fn eq(&self, other: &TransactionEvent) -> bool
fn eq(&self, other: &TransactionEvent) -> bool
self
and other
values to be equal, and is used
by ==
.