pub struct CostsAmount {
pub value: f64,
pub currency: String,
}Expand description
The monetary value in its associated currency.
Fields§
§value: f64The numeric value of the cost.
currency: StringLowercase ISO-4217 currency e.g. “usd”
Trait Implementations§
Source§impl Clone for CostsAmount
impl Clone for CostsAmount
Source§fn clone(&self) -> CostsAmount
fn clone(&self) -> CostsAmount
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 CostsAmount
impl Debug for CostsAmount
Source§impl<'de> Deserialize<'de> for CostsAmount
impl<'de> Deserialize<'de> for CostsAmount
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
Auto Trait Implementations§
impl Freeze for CostsAmount
impl RefUnwindSafe for CostsAmount
impl Send for CostsAmount
impl Sync for CostsAmount
impl Unpin for CostsAmount
impl UnwindSafe for CostsAmount
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