#[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
impl StructuralPartialEq for OfferingTransactionBuilder
Auto Trait Implementations§
impl Freeze for OfferingTransactionBuilder
impl RefUnwindSafe for OfferingTransactionBuilder
impl Send for OfferingTransactionBuilder
impl Sync for OfferingTransactionBuilder
impl Unpin for OfferingTransactionBuilder
impl UnwindSafe for OfferingTransactionBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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