#[non_exhaustive]pub struct TransactionOutputItemBuilder { /* private fields */ }
Expand description
A builder for TransactionOutputItem
.
Implementations§
source§impl TransactionOutputItemBuilder
impl TransactionOutputItemBuilder
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 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 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_timestamp(self, input: DateTime) -> Self
pub fn transaction_timestamp(self, input: DateTime) -> Self
The time when the transaction occurred.
This field is required.sourcepub fn set_transaction_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_transaction_timestamp(self, input: Option<DateTime>) -> Self
The time when the transaction occurred.
sourcepub fn get_transaction_timestamp(&self) -> &Option<DateTime>
pub fn get_transaction_timestamp(&self) -> &Option<DateTime>
The time when the transaction occurred.
sourcepub fn confirmation_status(self, input: ConfirmationStatus) -> Self
pub fn confirmation_status(self, input: ConfirmationStatus) -> Self
Specifies whether to list transactions that have not reached Finality.
sourcepub fn set_confirmation_status(self, input: Option<ConfirmationStatus>) -> Self
pub fn set_confirmation_status(self, input: Option<ConfirmationStatus>) -> Self
Specifies whether to list transactions that have not reached Finality.
sourcepub fn get_confirmation_status(&self) -> &Option<ConfirmationStatus>
pub fn get_confirmation_status(&self) -> &Option<ConfirmationStatus>
Specifies whether to list transactions that have not reached Finality.
sourcepub fn build(self) -> Result<TransactionOutputItem, BuildError>
pub fn build(self) -> Result<TransactionOutputItem, BuildError>
Consumes the builder and constructs a TransactionOutputItem
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TransactionOutputItemBuilder
impl Clone for TransactionOutputItemBuilder
source§fn clone(&self) -> TransactionOutputItemBuilder
fn clone(&self) -> TransactionOutputItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionOutputItemBuilder
impl Debug for TransactionOutputItemBuilder
source§impl Default for TransactionOutputItemBuilder
impl Default for TransactionOutputItemBuilder
source§fn default() -> TransactionOutputItemBuilder
fn default() -> TransactionOutputItemBuilder
source§impl PartialEq for TransactionOutputItemBuilder
impl PartialEq for TransactionOutputItemBuilder
source§fn eq(&self, other: &TransactionOutputItemBuilder) -> bool
fn eq(&self, other: &TransactionOutputItemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.