#[non_exhaustive]pub struct TransactionEventBuilder { /* private fields */ }
Expand description
A builder for TransactionEvent
.
Implementations§
source§impl TransactionEventBuilder
impl TransactionEventBuilder
sourcepub fn network(self, input: QueryNetwork) -> Self
pub fn network(self, input: QueryNetwork) -> Self
The blockchain network where the transaction occurred.
This field is required.sourcepub fn set_network(self, input: Option<QueryNetwork>) -> Self
pub fn set_network(self, input: Option<QueryNetwork>) -> Self
The blockchain network where the transaction occurred.
sourcepub fn get_network(&self) -> &Option<QueryNetwork>
pub fn get_network(&self) -> &Option<QueryNetwork>
The blockchain network where the transaction occurred.
sourcepub fn transaction_hash(self, input: impl Into<String>) -> Self
pub fn transaction_hash(self, input: impl Into<String>) -> Self
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
This field is required.sourcepub fn set_transaction_hash(self, input: Option<String>) -> Self
pub fn set_transaction_hash(self, input: Option<String>) -> Self
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn get_transaction_hash(&self) -> &Option<String>
pub fn get_transaction_hash(&self) -> &Option<String>
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn event_type(self, input: QueryTransactionEventType) -> Self
pub fn event_type(self, input: QueryTransactionEventType) -> Self
The type of transaction event.
This field is required.sourcepub fn set_event_type(self, input: Option<QueryTransactionEventType>) -> Self
pub fn set_event_type(self, input: Option<QueryTransactionEventType>) -> Self
The type of transaction event.
sourcepub fn get_event_type(&self) -> &Option<QueryTransactionEventType>
pub fn get_event_type(&self) -> &Option<QueryTransactionEventType>
The type of transaction event.
sourcepub fn from(self, input: impl Into<String>) -> Self
pub fn from(self, input: impl Into<String>) -> Self
The wallet address initiating the transaction. It can either be a public key or a contract.
sourcepub fn set_from(self, input: Option<String>) -> Self
pub fn set_from(self, input: Option<String>) -> Self
The wallet address initiating the transaction. It can either be a public key or a contract.
sourcepub fn get_from(&self) -> &Option<String>
pub fn get_from(&self) -> &Option<String>
The wallet address initiating the transaction. It can either be a public key or a contract.
sourcepub fn to(self, input: impl Into<String>) -> Self
pub fn to(self, input: impl Into<String>) -> Self
The wallet address receiving the transaction. It can either be a public key or a contract.
sourcepub fn set_to(self, input: Option<String>) -> Self
pub fn set_to(self, input: Option<String>) -> Self
The wallet address receiving the transaction. It can either be a public key or a contract.
sourcepub fn get_to(&self) -> &Option<String>
pub fn get_to(&self) -> &Option<String>
The wallet address receiving the transaction. It can either be a public key or a contract.
sourcepub fn contract_address(self, input: impl Into<String>) -> Self
pub fn contract_address(self, input: impl Into<String>) -> Self
The blockchain address. for the contract
sourcepub fn set_contract_address(self, input: Option<String>) -> Self
pub fn set_contract_address(self, input: Option<String>) -> Self
The blockchain address. for the contract
sourcepub fn get_contract_address(&self) -> &Option<String>
pub fn get_contract_address(&self) -> &Option<String>
The blockchain address. for the contract
sourcepub fn token_id(self, input: impl Into<String>) -> Self
pub fn token_id(self, input: impl Into<String>) -> Self
The unique identifier for the token involved in the transaction.
sourcepub fn set_token_id(self, input: Option<String>) -> Self
pub fn set_token_id(self, input: Option<String>) -> Self
The unique identifier for the token involved in the transaction.
sourcepub fn get_token_id(&self) -> &Option<String>
pub fn get_token_id(&self) -> &Option<String>
The unique identifier for the token involved in the transaction.
sourcepub fn transaction_id(self, input: impl Into<String>) -> Self
pub fn transaction_id(self, input: impl Into<String>) -> Self
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn set_transaction_id(self, input: Option<String>) -> Self
pub fn set_transaction_id(self, input: Option<String>) -> Self
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn get_transaction_id(&self) -> &Option<String>
pub fn get_transaction_id(&self) -> &Option<String>
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
sourcepub fn vout_index(self, input: i32) -> Self
pub fn vout_index(self, input: i32) -> Self
The position of the vout in the transaction output list.
sourcepub fn set_vout_index(self, input: Option<i32>) -> Self
pub fn set_vout_index(self, input: Option<i32>) -> Self
The position of the vout in the transaction output list.
sourcepub fn get_vout_index(&self) -> &Option<i32>
pub fn get_vout_index(&self) -> &Option<i32>
The position of the vout in the transaction output list.
sourcepub fn build(self) -> Result<TransactionEvent, BuildError>
pub fn build(self) -> Result<TransactionEvent, BuildError>
Consumes the builder and constructs a TransactionEvent
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TransactionEventBuilder
impl Clone for TransactionEventBuilder
source§fn clone(&self) -> TransactionEventBuilder
fn clone(&self) -> TransactionEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionEventBuilder
impl Debug for TransactionEventBuilder
source§impl Default for TransactionEventBuilder
impl Default for TransactionEventBuilder
source§fn default() -> TransactionEventBuilder
fn default() -> TransactionEventBuilder
source§impl PartialEq for TransactionEventBuilder
impl PartialEq for TransactionEventBuilder
source§fn eq(&self, other: &TransactionEventBuilder) -> bool
fn eq(&self, other: &TransactionEventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.