#[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 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 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 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 ==
.