pub struct CostsResultAmount {
pub value: Option<f64>,
pub currency: Option<String>,
}
Expand description
The monetary value in its associated currency.
Fields§
§value: Option<f64>
The numeric value of the cost.
currency: Option<String>
Lowercase ISO-4217 currency e.g. “usd”
Implementations§
Trait Implementations§
Source§impl Clone for CostsResultAmount
impl Clone for CostsResultAmount
Source§fn clone(&self) -> CostsResultAmount
fn clone(&self) -> CostsResultAmount
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 CostsResultAmount
impl Debug for CostsResultAmount
Source§impl Default for CostsResultAmount
impl Default for CostsResultAmount
Source§fn default() -> CostsResultAmount
fn default() -> CostsResultAmount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostsResultAmount
impl<'de> Deserialize<'de> for CostsResultAmount
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 PartialEq for CostsResultAmount
impl PartialEq for CostsResultAmount
Source§impl Serialize for CostsResultAmount
impl Serialize for CostsResultAmount
impl StructuralPartialEq for CostsResultAmount
Auto Trait Implementations§
impl Freeze for CostsResultAmount
impl RefUnwindSafe for CostsResultAmount
impl Send for CostsResultAmount
impl Sync for CostsResultAmount
impl Unpin for CostsResultAmount
impl UnwindSafe for CostsResultAmount
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