Struct paypal_rs::invoice::AggregatedDiscount [−][src]
pub struct AggregatedDiscount { pub invoice_discount: Option<Discount>, pub item_discount: Option<Money>, }
Expand description
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
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AggregatedDiscount
impl Send for AggregatedDiscount
impl Sync for AggregatedDiscount
impl Unpin for AggregatedDiscount
impl UnwindSafe for AggregatedDiscount