#[non_exhaustive]pub struct OfferingTransactionBuilder { /* private fields */ }Expand description
A builder for OfferingTransaction.
Implementations§
source§impl OfferingTransactionBuilder
impl OfferingTransactionBuilder
sourcepub fn offering_status(self, input: OfferingStatus) -> Self
pub fn offering_status(self, input: OfferingStatus) -> Self
The status of an offering transaction.
sourcepub fn set_offering_status(self, input: Option<OfferingStatus>) -> Self
pub fn set_offering_status(self, input: Option<OfferingStatus>) -> Self
The status of an offering transaction.
sourcepub fn get_offering_status(&self) -> &Option<OfferingStatus>
pub fn get_offering_status(&self) -> &Option<OfferingStatus>
The status of an offering transaction.
sourcepub fn transaction_id(self, input: impl Into<String>) -> Self
pub fn transaction_id(self, input: impl Into<String>) -> Self
The transaction ID of the offering transaction.
sourcepub fn set_transaction_id(self, input: Option<String>) -> Self
pub fn set_transaction_id(self, input: Option<String>) -> Self
The transaction ID of the offering transaction.
sourcepub fn get_transaction_id(&self) -> &Option<String>
pub fn get_transaction_id(&self) -> &Option<String>
The transaction ID of the offering transaction.
sourcepub fn offering_promotion_id(self, input: impl Into<String>) -> Self
pub fn offering_promotion_id(self, input: impl Into<String>) -> Self
The ID that corresponds to a device offering promotion.
sourcepub fn set_offering_promotion_id(self, input: Option<String>) -> Self
pub fn set_offering_promotion_id(self, input: Option<String>) -> Self
The ID that corresponds to a device offering promotion.
sourcepub fn get_offering_promotion_id(&self) -> &Option<String>
pub fn get_offering_promotion_id(&self) -> &Option<String>
The ID that corresponds to a device offering promotion.
sourcepub fn created_on(self, input: DateTime) -> Self
pub fn created_on(self, input: DateTime) -> Self
The date on which an offering transaction was created.
sourcepub fn set_created_on(self, input: Option<DateTime>) -> Self
pub fn set_created_on(self, input: Option<DateTime>) -> Self
The date on which an offering transaction was created.
sourcepub fn get_created_on(&self) -> &Option<DateTime>
pub fn get_created_on(&self) -> &Option<DateTime>
The date on which an offering transaction was created.
sourcepub fn cost(self, input: MonetaryAmount) -> Self
pub fn cost(self, input: MonetaryAmount) -> Self
The cost of an offering transaction.
sourcepub fn set_cost(self, input: Option<MonetaryAmount>) -> Self
pub fn set_cost(self, input: Option<MonetaryAmount>) -> Self
The cost of an offering transaction.
sourcepub fn get_cost(&self) -> &Option<MonetaryAmount>
pub fn get_cost(&self) -> &Option<MonetaryAmount>
The cost of an offering transaction.
sourcepub fn build(self) -> OfferingTransaction
pub fn build(self) -> OfferingTransaction
Consumes the builder and constructs a OfferingTransaction.
Trait Implementations§
source§impl Clone for OfferingTransactionBuilder
impl Clone for OfferingTransactionBuilder
source§fn clone(&self) -> OfferingTransactionBuilder
fn clone(&self) -> OfferingTransactionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OfferingTransactionBuilder
impl Debug for OfferingTransactionBuilder
source§impl Default for OfferingTransactionBuilder
impl Default for OfferingTransactionBuilder
source§fn default() -> OfferingTransactionBuilder
fn default() -> OfferingTransactionBuilder
source§impl PartialEq for OfferingTransactionBuilder
impl PartialEq for OfferingTransactionBuilder
source§fn eq(&self, other: &OfferingTransactionBuilder) -> bool
fn eq(&self, other: &OfferingTransactionBuilder) -> bool
self and other values to be equal, and is used
by ==.