Struct paypal_rs::invoice::Discount [−][src]
Expand description
Discount information
Fields
percent: Option<String>
The discount as a percentage value. Value is from 0 to 100. Supports up to five decimal places.
amount: Option<String>
The invoice level discount amount. Value is from 0 to 1000000. Supports up to two decimal places.
Trait Implementations
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 Discount
impl UnwindSafe for Discount