Struct lexoffice::model::down_payment_invoices::UnitPriceBuilder[][src]

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

Builder for UnitPrice instances.

See UnitPrice::builder() for more info.

Implementations

impl<__net_amount, __gross_amount, __tax_rate_percentage> UnitPriceBuilder<((), __net_amount, __gross_amount, __tax_rate_percentage)>[src]

pub fn currency(
    self,
    currency: Currency
) -> UnitPriceBuilder<((Option<Currency>,), __net_amount, __gross_amount, __tax_rate_percentage)>
[src]

impl<__currency, __gross_amount, __tax_rate_percentage> UnitPriceBuilder<(__currency, (), __gross_amount, __tax_rate_percentage)>[src]

pub fn net_amount(
    self,
    net_amount: f64
) -> UnitPriceBuilder<(__currency, (Option<f64>,), __gross_amount, __tax_rate_percentage)>
[src]

impl<__currency, __net_amount, __tax_rate_percentage> UnitPriceBuilder<(__currency, __net_amount, (), __tax_rate_percentage)>[src]

pub fn gross_amount(
    self,
    gross_amount: f64
) -> UnitPriceBuilder<(__currency, __net_amount, (Option<f64>,), __tax_rate_percentage)>
[src]

impl<__currency, __net_amount, __gross_amount> UnitPriceBuilder<(__currency, __net_amount, __gross_amount, ())>[src]

pub fn tax_rate_percentage(
    self,
    tax_rate_percentage: f64
) -> UnitPriceBuilder<(__currency, __net_amount, __gross_amount, (Option<f64>,))>
[src]

impl<__currency: UnitPriceBuilder_Optional<Option<Currency>>, __net_amount: UnitPriceBuilder_Optional<Option<f64>>, __gross_amount: UnitPriceBuilder_Optional<Option<f64>>, __tax_rate_percentage: UnitPriceBuilder_Optional<Option<f64>>> UnitPriceBuilder<(__currency, __net_amount, __gross_amount, __tax_rate_percentage)>[src]

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

Finalise the builder and create its UnitPrice instance

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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