pub struct CostReport {
pub hourly: f64,
pub daily: f64,
pub monthly: f64,
pub projection: CostProjection,
pub circuit_breaker_tripped: bool,
pub entries: Vec<CostEntry>,
}Expand description
Rolling cost report + circuit-breaker state.
Fields§
§hourly: f64§daily: f64§monthly: f64§projection: CostProjection§circuit_breaker_tripped: bool§entries: Vec<CostEntry>Trait Implementations§
Source§impl Clone for CostReport
impl Clone for CostReport
Source§fn clone(&self) -> CostReport
fn clone(&self) -> CostReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CostReport
impl Debug for CostReport
Source§impl<'de> Deserialize<'de> for CostReport
impl<'de> Deserialize<'de> for CostReport
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 CostReport
impl PartialEq for CostReport
Source§fn eq(&self, other: &CostReport) -> bool
fn eq(&self, other: &CostReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CostReport
impl Serialize for CostReport
impl StructuralPartialEq for CostReport
Auto Trait Implementations§
impl Freeze for CostReport
impl RefUnwindSafe for CostReport
impl Send for CostReport
impl Sync for CostReport
impl Unpin for CostReport
impl UnsafeUnpin for CostReport
impl UnwindSafe for CostReport
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