Expand description
CurrencyAmount : Currency type and amount.
Fields
currency_code: StringThree-digit currency code in ISO 4217 format.
amount: f64The currency amount.
Implementations
sourceimpl CurrencyAmount
impl CurrencyAmount
sourcepub fn new(currency_code: String, amount: f64) -> CurrencyAmount
pub fn new(currency_code: String, amount: f64) -> CurrencyAmount
Currency type and amount.
Trait Implementations
sourceimpl Clone for CurrencyAmount
impl Clone for CurrencyAmount
sourcefn clone(&self) -> CurrencyAmount
fn clone(&self) -> CurrencyAmount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CurrencyAmount
impl Debug for CurrencyAmount
sourceimpl Default for CurrencyAmount
impl Default for CurrencyAmount
sourcefn default() -> CurrencyAmount
fn default() -> CurrencyAmount
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CurrencyAmount
impl<'de> Deserialize<'de> for CurrencyAmount
sourcefn 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
sourceimpl PartialEq<CurrencyAmount> for CurrencyAmount
impl PartialEq<CurrencyAmount> for CurrencyAmount
sourcefn eq(&self, other: &CurrencyAmount) -> bool
fn eq(&self, other: &CurrencyAmount) -> bool
sourceimpl Serialize for CurrencyAmount
impl Serialize for CurrencyAmount
impl StructuralPartialEq for CurrencyAmount
Auto Trait Implementations
impl RefUnwindSafe for CurrencyAmount
impl Send for CurrencyAmount
impl Sync for CurrencyAmount
impl Unpin for CurrencyAmount
impl UnwindSafe for CurrencyAmount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more