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

pub struct TotalPrice {
    pub currency: Option<Currency>,
    pub total_net_amount: ReadOnly<f64>,
    pub total_gross_amount: ReadOnly<f64>,
    pub total_tax_amount: ReadOnly<f64>,
    pub total_discount_absolute: Option<f64>,
    pub total_discount_percentage: Option<f64>,
}

Fields

currency: Option<Currency>

The currency of the total price. Currently only EUR is supported.

total_net_amount: ReadOnly<f64>

The total net price over all line items. The value can contain up to 2 decimals.
Read-only.

total_gross_amount: ReadOnly<f64>

The total gross price over all line items. The value can contain up to 2 decimals.
Read-only.

total_tax_amount: ReadOnly<f64>

The total tax amount over all line items. The value can contain up to 2 decimals.
Read-only.

total_discount_absolute: Option<f64>

(Optional) A total discount as absolute value. The value can contain up to 2 decimals.

total_discount_percentage: Option<f64>

(Optional) A total discount relative to the gross amount or net amount dependent on the given tax conditions. A contact-specific default will be set if available and no total discount was send. The value can contain up to 2 decimals.

Implementations

impl TotalPrice[src]

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

Create a builder for building TotalPrice. On the builder, call .currency(...)(optional), .total_discount_absolute(...)(optional), .total_discount_percentage(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of TotalPrice.

Trait Implementations

impl Clone for TotalPrice[src]

impl Debug for TotalPrice[src]

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

impl PartialEq<TotalPrice> for TotalPrice[src]

impl Serialize for TotalPrice[src]

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