pub struct UsageReport {
pub today: WindowUsage,
pub week: WindowUsage,
pub month: WindowUsage,
pub lifetime: WindowUsage,
pub pricing_available: bool,
}Expand description
The four rolling windows the /usage overlay drew. lifetime is
a static sum; the other three are recomputed relative to now.
Fields§
§today: WindowUsage§week: WindowUsage§month: WindowUsage§lifetime: WindowUsage§pricing_available: boolWhether a pricing table was loaded when this report was built.
false (cold cache, failed or empty fetch) means every cost is
a placeholder 0, so the UI blanks costs rather than reading a
misleading $0.00.
Trait Implementations§
Source§impl Clone for UsageReport
impl Clone for UsageReport
Source§impl Debug for UsageReport
impl Debug for UsageReport
Source§impl<'de> Deserialize<'de> for UsageReport
impl<'de> Deserialize<'de> for UsageReport
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 UsageReport
impl PartialEq for UsageReport
Source§impl Serialize for UsageReport
impl Serialize for UsageReport
impl StructuralPartialEq for UsageReport
Auto Trait Implementations§
impl Freeze for UsageReport
impl RefUnwindSafe for UsageReport
impl Send for UsageReport
impl Sync for UsageReport
impl Unpin for UsageReport
impl UnsafeUnpin for UsageReport
impl UnwindSafe for UsageReport
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