Struct lexoffice::model::vouchers::VoucherBuilder[][src]

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

Builder for Voucher instances.

See Voucher::builder() for more info.

Implementations

impl<___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<((), ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn organization_id(
    self,
    organization_id: Uuid
) -> VoucherBuilder<((Option<Uuid>,), ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, (), __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn _type(
    self,
    _type: impl Into<Type>
) -> VoucherBuilder<(__organization_id, (Type,), __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, (), __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn voucher_number(
    self,
    voucher_number: impl Into<String>
) -> VoucherBuilder<(__organization_id, ___type, (String,), __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, (), __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn voucher_date(
    self,
    voucher_date: impl Into<Date>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, (Date,), __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, (), __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn shipping_date(
    self,
    shipping_date: Date
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, (Option<Date>,), __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, (), __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn due_date(
    self,
    due_date: Date
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, (Option<Date>,), __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, (), __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn total_gross_amount(
    self,
    total_gross_amount: impl Into<f64>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, (f64,), __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, (), __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn total_tax_amount(
    self,
    total_tax_amount: impl Into<f64>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, (f64,), __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __use_collective_contact, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, (), __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>[src]

pub fn tax_type(
    self,
    tax_type: impl Into<TaxType>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, (TaxType,), __use_collective_contact, __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __contact_id, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, (), __contact_id, __remark, __voucher_items, __files)>[src]

pub fn use_collective_contact(
    self,
    use_collective_contact: bool
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, (Option<bool>,), __contact_id, __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __remark, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, (), __remark, __voucher_items, __files)>[src]

pub fn contact_id(
    self,
    contact_id: Uuid
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, (Option<Uuid>,), __remark, __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __voucher_items, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, (), __voucher_items, __files)>[src]

pub fn remark(
    self,
    remark: String
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, (Option<String>,), __voucher_items, __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __files> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, (), __files)>[src]

pub fn voucher_items(
    self,
    voucher_items: impl Into<Vec<VoucherItems>>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, (Vec<VoucherItems>,), __files)>
[src]

impl<__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, ())>[src]

pub fn files(
    self,
    files: Vec<Uuid>
) -> VoucherBuilder<(__organization_id, ___type, __voucher_number, __voucher_date, __shipping_date, __due_date, __total_gross_amount, __total_tax_amount, __tax_type, __use_collective_contact, __contact_id, __remark, __voucher_items, (Option<Vec<Uuid>>,))>
[src]

impl<__organization_id: VoucherBuilder_Optional<Option<Uuid>>, __shipping_date: VoucherBuilder_Optional<Option<Date>>, __due_date: VoucherBuilder_Optional<Option<Date>>, __use_collective_contact: VoucherBuilder_Optional<Option<bool>>, __contact_id: VoucherBuilder_Optional<Option<Uuid>>, __remark: VoucherBuilder_Optional<Option<String>>, __files: VoucherBuilder_Optional<Option<Vec<Uuid>>>> VoucherBuilder<(__organization_id, (Type,), (String,), (Date,), __shipping_date, __due_date, (f64,), (f64,), (TaxType,), __use_collective_contact, __contact_id, __remark, (Vec<VoucherItems>,), __files)>[src]

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

Finalise the builder and create its Voucher instance

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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