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

pub struct PaymentDiscountConditions {
    pub discount_percentage: Option<f64>,
    pub discount_range: Option<i64>,
}

Fields

discount_percentage: Option<f64>

The discount offered in return for payment within the discountRange. The value can contain up to 2 decimals.

discount_range: Option<i64>

The time left (in days) the discount is valid.

Implementations

impl PaymentDiscountConditions[src]

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

Create a builder for building PaymentDiscountConditions. On the builder, call .discount_percentage(...)(optional), .discount_range(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of PaymentDiscountConditions.

Trait Implementations

impl Clone for PaymentDiscountConditions[src]

impl Debug for PaymentDiscountConditions[src]

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

impl PartialEq<PaymentDiscountConditions> for PaymentDiscountConditions[src]

impl Serialize for PaymentDiscountConditions[src]

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