Struct lexoffice::model::quotations::PaymentConditionsBuilder[][src]

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

Builder for PaymentConditions instances.

See PaymentConditions::builder() for more info.

Implementations

impl<__payment_term_duration, __payment_discount_conditions> PaymentConditionsBuilder<((), __payment_term_duration, __payment_discount_conditions)>[src]

pub fn payment_term_label(
    self,
    payment_term_label: String
) -> PaymentConditionsBuilder<((Option<String>,), __payment_term_duration, __payment_discount_conditions)>
[src]

impl<__payment_term_label, __payment_discount_conditions> PaymentConditionsBuilder<(__payment_term_label, (), __payment_discount_conditions)>[src]

pub fn payment_term_duration(
    self,
    payment_term_duration: i64
) -> PaymentConditionsBuilder<(__payment_term_label, (Option<i64>,), __payment_discount_conditions)>
[src]

impl<__payment_term_label, __payment_term_duration> PaymentConditionsBuilder<(__payment_term_label, __payment_term_duration, ())>[src]

pub fn payment_discount_conditions(
    self,
    payment_discount_conditions: Vec<PaymentDiscountConditions>
) -> PaymentConditionsBuilder<(__payment_term_label, __payment_term_duration, (Option<Vec<PaymentDiscountConditions>>,))>
[src]

impl<__payment_term_label: PaymentConditionsBuilder_Optional<Option<String>>, __payment_term_duration: PaymentConditionsBuilder_Optional<Option<i64>>, __payment_discount_conditions: PaymentConditionsBuilder_Optional<Option<Vec<PaymentDiscountConditions>>>> PaymentConditionsBuilder<(__payment_term_label, __payment_term_duration, __payment_discount_conditions)>[src]

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

Finalise the builder and create its PaymentConditions instance

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<TypedBuilderFields> UnwindSafe for PaymentConditionsBuilder<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.