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

pub struct VoucherItems {
    pub amount: f64,
    pub tax_amount: f64,
    pub tax_rate_percent: f64,
    pub category_id: Uuid,
}

Fields

amount: f64

Amount of the position. Net or gross amount, according to the voucher’s taxType. Format must be ##.00 (119.00).

tax_amount: f64

Tax amount of the voucher’s item. Format must be ##.00 (19.00).

tax_rate_percent: f64

Tax rate as percentage value. Supported tax rates are 0, 5, 7, 16, 19 (e.g. 19).

category_id: Uuid

Booking category for this voucher’s revenue or expenditure. Supported and appropriate categoryId’s can be found here.

Implementations

impl VoucherItems[src]

pub fn builder() -> VoucherItemsBuilder<((), (), (), ())>[src]

Create a builder for building VoucherItems. On the builder, call .amount(...), .tax_amount(...), .tax_rate_percent(...), .category_id(...) to set the values of the fields. Finally, call .build() to create the instance of VoucherItems.

Trait Implementations

impl Clone for VoucherItems[src]

impl Debug for VoucherItems[src]

impl<'de> Deserialize<'de> for VoucherItems[src]

impl PartialEq<VoucherItems> for VoucherItems[src]

impl Serialize for VoucherItems[src]

impl StructuralPartialEq for VoucherItems[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.