#[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 a transaction. It is generated when a transaction is created.
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 a transaction. It is generated when a transaction is created.
sourcepub fn get_transaction_hash(&self) -> &Option<String>
pub fn get_transaction_hash(&self) -> &Option<String>
The hash of a transaction. It is generated when a transaction is created.
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 identifier of a Bitcoin transaction. It is generated when a transaction is created.
sourcepub fn set_transaction_id(self, input: Option<String>) -> Self
pub fn set_transaction_id(self, input: Option<String>) -> Self
The identifier of a Bitcoin transaction. It is generated when a transaction is created.
sourcepub fn get_transaction_id(&self) -> &Option<String>
pub fn get_transaction_id(&self) -> &Option<String>
The identifier of a Bitcoin transaction. It is generated when a transaction is created.
sourcepub fn vout_index(self, input: i32) -> Self
pub fn vout_index(self, input: i32) -> Self
The position of the transaction output 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 transaction output 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 transaction output in the transaction output list.
sourcepub fn vout_spent(self, input: bool) -> Self
pub fn vout_spent(self, input: bool) -> Self
Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.
This is only returned for BITCOIN_VOUT
event types.
sourcepub fn set_vout_spent(self, input: Option<bool>) -> Self
pub fn set_vout_spent(self, input: Option<bool>) -> Self
Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.
This is only returned for BITCOIN_VOUT
event types.
sourcepub fn get_vout_spent(&self) -> &Option<bool>
pub fn get_vout_spent(&self) -> &Option<bool>
Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.
This is only returned for BITCOIN_VOUT
event types.
sourcepub fn spent_vout_transaction_id(self, input: impl Into<String>) -> Self
pub fn spent_vout_transaction_id(self, input: impl Into<String>) -> Self
The transactionId that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn set_spent_vout_transaction_id(self, input: Option<String>) -> Self
pub fn set_spent_vout_transaction_id(self, input: Option<String>) -> Self
The transactionId that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn get_spent_vout_transaction_id(&self) -> &Option<String>
pub fn get_spent_vout_transaction_id(&self) -> &Option<String>
The transactionId that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn spent_vout_transaction_hash(self, input: impl Into<String>) -> Self
pub fn spent_vout_transaction_hash(self, input: impl Into<String>) -> Self
The transactionHash that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn set_spent_vout_transaction_hash(self, input: Option<String>) -> Self
pub fn set_spent_vout_transaction_hash(self, input: Option<String>) -> Self
The transactionHash that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn get_spent_vout_transaction_hash(&self) -> &Option<String>
pub fn get_spent_vout_transaction_hash(&self) -> &Option<String>
The transactionHash that created the spent transaction output.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn spent_vout_index(self, input: i32) -> Self
pub fn spent_vout_index(self, input: i32) -> Self
The position of the spent transaction output in the output list of the creating transaction.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn set_spent_vout_index(self, input: Option<i32>) -> Self
pub fn set_spent_vout_index(self, input: Option<i32>) -> Self
The position of the spent transaction output in the output list of the creating transaction.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn get_spent_vout_index(&self) -> &Option<i32>
pub fn get_spent_vout_index(&self) -> &Option<i32>
The position of the spent transaction output in the output list of the creating transaction.
This is only returned for BITCOIN_VIN
event types.
sourcepub fn blockchain_instant(self, input: BlockchainInstant) -> Self
pub fn blockchain_instant(self, input: BlockchainInstant) -> Self
The container for time.
sourcepub fn set_blockchain_instant(self, input: Option<BlockchainInstant>) -> Self
pub fn set_blockchain_instant(self, input: Option<BlockchainInstant>) -> Self
The container for time.
sourcepub fn get_blockchain_instant(&self) -> &Option<BlockchainInstant>
pub fn get_blockchain_instant(&self) -> &Option<BlockchainInstant>
The container for time.
sourcepub fn confirmation_status(self, input: ConfirmationStatus) -> Self
pub fn confirmation_status(self, input: ConfirmationStatus) -> Self
This container specifies whether the transaction has reached Finality.
sourcepub fn set_confirmation_status(self, input: Option<ConfirmationStatus>) -> Self
pub fn set_confirmation_status(self, input: Option<ConfirmationStatus>) -> Self
This container specifies whether the transaction has reached Finality.
sourcepub fn get_confirmation_status(&self) -> &Option<ConfirmationStatus>
pub fn get_confirmation_status(&self) -> &Option<ConfirmationStatus>
This container specifies whether the transaction has reached Finality.
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 ==
.