pub enum CurrencyValue {}
Expand description
CurrencyValue
JSON schema
{
"description": "A monetary value with its associated currency code.",
"allOf": [
{
"$ref": "#/components/schemas/LinkedDataObject"
},
{
"type": "object",
"required": [
"@type",
"amount",
"currency"
],
"properties": {
"@type": {
"type": "string",
"enum": [
"MonetaryAmount"
],
"x-tsType": "LinkedDataType.MonetaryAmount"
},
"amount": {
"$ref": "#/components/schemas/CurrencyAmount"
},
"currency": {
"description": "The 3-letter currency code.",
"examples": [
"USD"
],
"type": "string"
}
},
"additionalProperties": false
}
],
"x-schema-name": "CurrencyValue"
}
Trait Implementations§
Source§impl Clone for CurrencyValue
impl Clone for CurrencyValue
Source§fn clone(&self) -> CurrencyValue
fn clone(&self) -> CurrencyValue
Returns a duplicate of the value. Read more
1.0.0 · 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 CurrencyValue
impl Debug for CurrencyValue
Source§impl<'de> Deserialize<'de> for CurrencyValue
impl<'de> Deserialize<'de> for CurrencyValue
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<&CurrencyValue> for CurrencyValue
impl From<&CurrencyValue> for CurrencyValue
Source§fn from(value: &CurrencyValue) -> Self
fn from(value: &CurrencyValue) -> Self
Converts to this type from the input type.
Source§impl From<CurrencyValue> for RichSingleValue
impl From<CurrencyValue> for RichSingleValue
Source§fn from(value: CurrencyValue) -> Self
fn from(value: CurrencyValue) -> Self
Converts to this type from the input type.
Source§impl Hash for CurrencyValue
impl Hash for CurrencyValue
Source§impl Ord for CurrencyValue
impl Ord for CurrencyValue
Source§fn cmp(&self, other: &CurrencyValue) -> Ordering
fn cmp(&self, other: &CurrencyValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CurrencyValue
impl PartialEq for CurrencyValue
Source§impl PartialOrd for CurrencyValue
impl PartialOrd for CurrencyValue
Source§impl Serialize for CurrencyValue
impl Serialize for CurrencyValue
impl Copy for CurrencyValue
impl Eq for CurrencyValue
impl StructuralPartialEq for CurrencyValue
Auto Trait Implementations§
impl Freeze for CurrencyValue
impl RefUnwindSafe for CurrencyValue
impl Send for CurrencyValue
impl Sync for CurrencyValue
impl Unpin for CurrencyValue
impl UnwindSafe for CurrencyValue
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