#[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 ==
.impl StructuralPartialEq for TransactionOutputItemBuilder
Auto Trait Implementations§
impl Freeze for TransactionOutputItemBuilder
impl RefUnwindSafe for TransactionOutputItemBuilder
impl Send for TransactionOutputItemBuilder
impl Sync for TransactionOutputItemBuilder
impl Unpin for TransactionOutputItemBuilder
impl UnwindSafe for TransactionOutputItemBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more