[][src]Struct paypal_rs::invoice::AggregatedDiscount

pub struct AggregatedDiscount {
    pub invoice_discount: Option<Discount>,
    pub item_discount: Option<Money>,
}

The discount

Fields

invoice_discount: Option<Discount>

The discount as a percent or amount at invoice level. The invoice discount amount is subtracted from the item total.

item_discount: Option<Money>

The discount as a percent or amount at item level. The item discount amount is subtracted from each item amount.

Trait Implementations

impl Debug for AggregatedDiscount[src]

impl Default for AggregatedDiscount[src]

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

impl Serialize for AggregatedDiscount[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> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.