Struct paypal_rs::invoice::Amount [−][src]
pub struct Amount { pub currency_code: Currency, pub value: String, pub breakdown: Option<Breakdown>, }
Expand description
Represents an amount of money.
Fields
currency_code: Currency
The three-character ISO-4217 currency code that identifies the currency.
value: String
The value, which might be:
- An integer for currencies like JPY that are not typically fractional.
- A decimal fraction for currencies like TND that are subdivided into thousandths.
For the required number of decimal places for a currency code, see Currency Codes.
breakdown: Option<Breakdown>
The breakdown of the amount. Breakdown provides details such as total item amount, total tax amount, custom amount, shipping and discounts, if any.
Implementations
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 Amount
impl UnwindSafe for Amount