Struct lexoffice::model::order_confirmations::LineItems[][src]

pub struct LineItems {
    pub id: ReadOnly<Uuid>,
    pub _type: Option<Type>,
    pub name: Option<String>,
    pub description: Option<String>,
    pub quantity: Option<f64>,
    pub unit_name: Option<String>,
    pub unit_price: Option<UnitPrice>,
    pub discount_percentage: Option<f64>,
    pub line_item_amount: ReadOnly<f64>,
}

Fields

id: ReadOnly<Uuid>

The field specifies the related id of the product/service.
Read-only.

_type: Option<Type>

The type of the item. Possible values are service (the line item is related to a supply of services), material (the line item is related to a physical product), custom (an item without reference in lexoffice and has no id) or text (contains only a name and/or a description for informative purposes).

name: Option<String>

The name of the item.

description: Option<String>

The description of the item.

quantity: Option<f64>

The amount of the purchased item. The value can contain up to 4 decimals.

unit_name: Option<String>

The unit name of the purchased item. If the provided unit name is not known in lexoffice it will be created on the fly.

unit_price: Option<UnitPrice>

The unit price of the purchased item. For details see below.

discount_percentage: Option<f64>

The offered discount for the item. The value can contain up to 2 decimals.

line_item_amount: ReadOnly<f64>

The total price of this line item. Depending by the selected taxType in taxConditions, the amount must be given either as net or gross. The value can contain up to 2 decimals.
Read-only.

Implementations

impl LineItems[src]

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

Create a builder for building LineItems. On the builder, call ._type(...)(optional), .name(...)(optional), .description(...)(optional), .quantity(...)(optional), .unit_name(...)(optional), .unit_price(...)(optional), .discount_percentage(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of LineItems.

Trait Implementations

impl Clone for LineItems[src]

impl Debug for LineItems[src]

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

impl HasId for LineItems[src]

impl PartialEq<LineItems> for LineItems[src]

impl Serialize for LineItems[src]

impl StructuralPartialEq for LineItems[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.