#[repr(C)]pub struct CurrencyCode(/* private fields */);
Expand description
Represents an ISO 4217 currency code.
Implementations§
Source§impl CurrencyCode
impl CurrencyCode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CurrencyCode.
Sourcepub const fn create(val: IsoCurrency) -> Self
pub const fn create(val: IsoCurrency) -> Self
Creates a new CurrencyCode from the provided parameter.
Trait Implementations§
Source§impl Clone for CurrencyCode
impl Clone for CurrencyCode
Source§fn clone(&self) -> CurrencyCode
fn clone(&self) -> CurrencyCode
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 CurrencyCode
impl Debug for CurrencyCode
Source§impl Default for CurrencyCode
impl Default for CurrencyCode
Source§fn default() -> CurrencyCode
fn default() -> CurrencyCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrencyCode
impl<'de> Deserialize<'de> for CurrencyCode
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 CurrencyCode
impl Display for CurrencyCode
Source§impl From<&CurrencyCode> for &'static str
impl From<&CurrencyCode> for &'static str
Source§fn from(val: &CurrencyCode) -> Self
fn from(val: &CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<&CurrencyCode> for Exponent
impl From<&CurrencyCode> for Exponent
Source§fn from(val: &CurrencyCode) -> Self
fn from(val: &CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<&CurrencyCode> for XfsMember
impl From<&CurrencyCode> for XfsMember
Source§fn from(val: &CurrencyCode) -> Self
fn from(val: &CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<&CurrencyCode> for XfsValue
impl From<&CurrencyCode> for XfsValue
Source§fn from(val: &CurrencyCode) -> Self
fn from(val: &CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<&str> for CurrencyCode
impl From<&str> for CurrencyCode
Source§impl From<CurrencyCode> for &'static str
impl From<CurrencyCode> for &'static str
Source§fn from(val: CurrencyCode) -> Self
fn from(val: CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<CurrencyCode> for Currency
impl From<CurrencyCode> for Currency
Source§fn from(val: CurrencyCode) -> Self
fn from(val: CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<CurrencyCode> for Exponent
impl From<CurrencyCode> for Exponent
Source§fn from(val: CurrencyCode) -> Self
fn from(val: CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<CurrencyCode> for XfsMember
impl From<CurrencyCode> for XfsMember
Source§fn from(val: CurrencyCode) -> Self
fn from(val: CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl From<CurrencyCode> for XfsValue
impl From<CurrencyCode> for XfsValue
Source§fn from(val: CurrencyCode) -> Self
fn from(val: CurrencyCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurrencyCode
impl PartialEq for CurrencyCode
Source§impl Serialize for CurrencyCode
impl Serialize for CurrencyCode
Source§impl TryFrom<&XfsMember> for CurrencyCode
impl TryFrom<&XfsMember> for CurrencyCode
Source§impl TryFrom<&XfsValue> for CurrencyCode
impl TryFrom<&XfsValue> for CurrencyCode
Source§impl TryFrom<XfsMember> for CurrencyCode
impl TryFrom<XfsMember> for CurrencyCode
Source§impl TryFrom<XfsValue> for CurrencyCode
impl TryFrom<XfsValue> for CurrencyCode
impl Copy for CurrencyCode
impl StructuralPartialEq for CurrencyCode
Auto Trait Implementations§
impl Freeze for CurrencyCode
impl RefUnwindSafe for CurrencyCode
impl Send for CurrencyCode
impl Sync for CurrencyCode
impl Unpin for CurrencyCode
impl UnwindSafe for CurrencyCode
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