pub struct CurrencyEntry { /* private fields */ }Expand description
An Currency XML Entry
Implementations§
Source§impl CurrencyEntry
impl CurrencyEntry
Sourcepub fn name(&self) -> Option<&CurrencyName>
pub fn name(&self) -> Option<&CurrencyName>
The currency name.
Sourcepub fn currency(&self) -> Option<&str>
pub fn currency(&self) -> Option<&str>
The currency code.
This may be optional if the given country doesn’t have universal currency.
Sourcepub fn minor_unit(&self) -> Option<u8>
pub fn minor_unit(&self) -> Option<u8>
Retrieve the minor unit decimal places, if applicable.
Trait Implementations§
Source§impl Clone for CurrencyEntry
impl Clone for CurrencyEntry
Source§fn clone(&self) -> CurrencyEntry
fn clone(&self) -> CurrencyEntry
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 CurrencyEntry
impl Debug for CurrencyEntry
Source§impl<'de> Deserialize<'de> for CurrencyEntry
impl<'de> Deserialize<'de> for CurrencyEntry
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 Hash for CurrencyEntry
impl Hash for CurrencyEntry
Source§impl Ord for CurrencyEntry
impl Ord for CurrencyEntry
Source§fn cmp(&self, other: &CurrencyEntry) -> Ordering
fn cmp(&self, other: &CurrencyEntry) -> 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 CurrencyEntry
impl PartialEq for CurrencyEntry
Source§impl PartialOrd for CurrencyEntry
impl PartialOrd for CurrencyEntry
Source§impl Serialize for CurrencyEntry
impl Serialize for CurrencyEntry
impl Eq for CurrencyEntry
impl StructuralPartialEq for CurrencyEntry
Auto Trait Implementations§
impl Freeze for CurrencyEntry
impl RefUnwindSafe for CurrencyEntry
impl Send for CurrencyEntry
impl Sync for CurrencyEntry
impl Unpin for CurrencyEntry
impl UnwindSafe for CurrencyEntry
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