Struct paypal_rust::resources::money::Money
source · pub struct Money {
pub currency_code: CurrencyCode,
pub value: String,
}
Fields§
§currency_code: CurrencyCode
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.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Money
impl<'de> Deserialize<'de> for Money
source§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