pub struct CostTotals {
pub amount: f64,
pub currency: Option<String>,
}Expand description
Accumulated monetary cost across all events seen by a UsageReporter.
Fields§
§amount: f64Running total cost expressed in currency units.
currency: Option<String>ISO 4217 currency code (e.g. "USD"), set from the first cost event.
Trait Implementations§
Source§impl Clone for CostTotals
impl Clone for CostTotals
Source§fn clone(&self) -> CostTotals
fn clone(&self) -> CostTotals
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 CostTotals
impl Debug for CostTotals
Source§impl Default for CostTotals
impl Default for CostTotals
Source§fn default() -> CostTotals
fn default() -> CostTotals
Returns the “default value” for a type. Read more
Source§impl PartialEq for CostTotals
impl PartialEq for CostTotals
impl StructuralPartialEq for CostTotals
Auto Trait Implementations§
impl Freeze for CostTotals
impl RefUnwindSafe for CostTotals
impl Send for CostTotals
impl Sync for CostTotals
impl Unpin for CostTotals
impl UnsafeUnpin for CostTotals
impl UnwindSafe for CostTotals
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