pub struct CurrencyAmount {
pub currency: CurrencyAmountCurrency,
pub value: String,
}Expand description
A monetary value with its currency denomination.
JSON schema
{
"title": "CurrencyAmount",
"description": "A monetary value with its currency denomination.",
"examples": [
{
"currency": "usd",
"value": "100.00"
}
],
"type": "object",
"required": [
"currency",
"value"
],
"properties": {
"currency": {
"description": "Currency code",
"type": "string",
"enum": [
"usd"
]
},
"value": {
"description": "The monetary value as a string.",
"type": "string"
}
},
"x-stainless-model": "shared.currency_amount"
}Fields§
§currency: CurrencyAmountCurrencyCurrency code
value: StringThe monetary value as a string.
Trait Implementations§
Source§impl Clone for CurrencyAmount
impl Clone for CurrencyAmount
Source§fn clone(&self) -> CurrencyAmount
fn clone(&self) -> CurrencyAmount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurrencyAmount
impl Debug for CurrencyAmount
Source§impl<'de> Deserialize<'de> for CurrencyAmount
impl<'de> Deserialize<'de> for CurrencyAmount
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
Source§impl From<&CurrencyAmount> for CurrencyAmount
impl From<&CurrencyAmount> for CurrencyAmount
Source§fn from(value: &CurrencyAmount) -> Self
fn from(value: &CurrencyAmount) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CurrencyAmount
impl RefUnwindSafe for CurrencyAmount
impl Send for CurrencyAmount
impl Sync for CurrencyAmount
impl Unpin for CurrencyAmount
impl UnsafeUnpin for CurrencyAmount
impl UnwindSafe for CurrencyAmount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more