pub struct IsoCurrencyCode(/* private fields */);Expand description
Currency ISO 4217 code. Intended to only cover fiat currencies. For our
purposes, a fiat currency code is always three uppercase ASCII characters
(i.e., [A-Z]{3}).
§Examples
"USD", "EUR", "DKK", "CNY", ...
Implementations§
Trait Implementations§
Source§impl Clone for IsoCurrencyCode
impl Clone for IsoCurrencyCode
Source§fn clone(&self) -> IsoCurrencyCode
fn clone(&self) -> IsoCurrencyCode
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 IsoCurrencyCode
impl Debug for IsoCurrencyCode
Source§impl<'de> Deserialize<'de> for IsoCurrencyCode
impl<'de> Deserialize<'de> for IsoCurrencyCode
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 Display for IsoCurrencyCode
impl Display for IsoCurrencyCode
Source§impl FromStr for IsoCurrencyCode
impl FromStr for IsoCurrencyCode
Source§impl Hash for IsoCurrencyCode
impl Hash for IsoCurrencyCode
Source§impl Ord for IsoCurrencyCode
impl Ord for IsoCurrencyCode
Source§fn cmp(&self, other: &IsoCurrencyCode) -> Ordering
fn cmp(&self, other: &IsoCurrencyCode) -> 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 IsoCurrencyCode
impl PartialEq for IsoCurrencyCode
Source§impl PartialOrd for IsoCurrencyCode
impl PartialOrd for IsoCurrencyCode
Source§impl Serialize for IsoCurrencyCode
impl Serialize for IsoCurrencyCode
impl Copy for IsoCurrencyCode
impl Eq for IsoCurrencyCode
impl StructuralPartialEq for IsoCurrencyCode
Auto Trait Implementations§
impl Freeze for IsoCurrencyCode
impl RefUnwindSafe for IsoCurrencyCode
impl Send for IsoCurrencyCode
impl Sync for IsoCurrencyCode
impl Unpin for IsoCurrencyCode
impl UnsafeUnpin for IsoCurrencyCode
impl UnwindSafe for IsoCurrencyCode
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