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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.