Struct lexoffice::model::invoices::PaymentDiscountConditionsBuilder[][src]

#[must_use]pub struct PaymentDiscountConditionsBuilder<TypedBuilderFields> { /* fields omitted */ }

Builder for PaymentDiscountConditions instances.

See PaymentDiscountConditions::builder() for more info.

Implementations

impl<__discount_range> PaymentDiscountConditionsBuilder<((), __discount_range)>[src]

pub fn discount_percentage(
    self,
    discount_percentage: f64
) -> PaymentDiscountConditionsBuilder<((Option<f64>,), __discount_range)>
[src]

impl<__discount_percentage> PaymentDiscountConditionsBuilder<(__discount_percentage, ())>[src]

pub fn discount_range(
    self,
    discount_range: i64
) -> PaymentDiscountConditionsBuilder<(__discount_percentage, (Option<i64>,))>
[src]

impl<__discount_percentage: PaymentDiscountConditionsBuilder_Optional<Option<f64>>, __discount_range: PaymentDiscountConditionsBuilder_Optional<Option<i64>>> PaymentDiscountConditionsBuilder<(__discount_percentage, __discount_range)>[src]

pub fn build(self) -> PaymentDiscountConditions[src]

Finalise the builder and create its PaymentDiscountConditions instance

Trait Implementations

impl<TypedBuilderFields> Clone for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: Clone
[src]

Auto Trait Implementations

impl<TypedBuilderFields> RefUnwindSafe for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: RefUnwindSafe

impl<TypedBuilderFields> Send for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: Send

impl<TypedBuilderFields> Sync for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: Sync

impl<TypedBuilderFields> Unpin for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: Unpin

impl<TypedBuilderFields> UnwindSafe for PaymentDiscountConditionsBuilder<TypedBuilderFields> where
    TypedBuilderFields: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.