Struct lexoffice::model::payments::PaymentBuilder[][src]

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

Builder for Payment instances.

See Payment::builder() for more info.

Implementations

impl<__currency, __payment_status, __voucher_type, __voucher_status> PaymentBuilder<((), __currency, __payment_status, __voucher_type, __voucher_status)>[src]

pub fn open_amount(
    self,
    open_amount: f64
) -> PaymentBuilder<((Option<f64>,), __currency, __payment_status, __voucher_type, __voucher_status)>
[src]

impl<__open_amount, __payment_status, __voucher_type, __voucher_status> PaymentBuilder<(__open_amount, (), __payment_status, __voucher_type, __voucher_status)>[src]

pub fn currency(
    self,
    currency: Currency
) -> PaymentBuilder<(__open_amount, (Option<Currency>,), __payment_status, __voucher_type, __voucher_status)>
[src]

impl<__open_amount, __currency, __voucher_type, __voucher_status> PaymentBuilder<(__open_amount, __currency, (), __voucher_type, __voucher_status)>[src]

pub fn payment_status(
    self,
    payment_status: PaymentStatus
) -> PaymentBuilder<(__open_amount, __currency, (Option<PaymentStatus>,), __voucher_type, __voucher_status)>
[src]

impl<__open_amount, __currency, __payment_status, __voucher_status> PaymentBuilder<(__open_amount, __currency, __payment_status, (), __voucher_status)>[src]

pub fn voucher_type(
    self,
    voucher_type: VoucherType
) -> PaymentBuilder<(__open_amount, __currency, __payment_status, (Option<VoucherType>,), __voucher_status)>
[src]

impl<__open_amount, __currency, __payment_status, __voucher_type> PaymentBuilder<(__open_amount, __currency, __payment_status, __voucher_type, ())>[src]

pub fn voucher_status(
    self,
    voucher_status: VoucherStatus
) -> PaymentBuilder<(__open_amount, __currency, __payment_status, __voucher_type, (Option<VoucherStatus>,))>
[src]

impl<__open_amount: PaymentBuilder_Optional<Option<f64>>, __currency: PaymentBuilder_Optional<Option<Currency>>, __payment_status: PaymentBuilder_Optional<Option<PaymentStatus>>, __voucher_type: PaymentBuilder_Optional<Option<VoucherType>>, __voucher_status: PaymentBuilder_Optional<Option<VoucherStatus>>> PaymentBuilder<(__open_amount, __currency, __payment_status, __voucher_type, __voucher_status)>[src]

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

Finalise the builder and create its Payment instance

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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