pub struct Dashboard {Show 14 fields
pub query: Query,
pub total: Summary,
pub savings: Savings,
pub savings_by_bucket: Vec<BucketSavings>,
pub input_price: f64,
pub report: Vec<ReportRow>,
pub projects: Vec<(String, Summary)>,
pub warnings: Vec<String>,
pub row_count: usize,
pub series: TimeSeries,
pub pie: Pie,
pub selection: Selection,
pub currency: Currency,
pub updated_at: String,
}Expand description
Everything a page render needs.
Fields§
§query: Query§total: Summary§savings: SavingsWhat prompt caching, rtk and pi compaction saved in this selection.
savings_by_bucket: Vec<BucketSavings>Savings per chart bucket (minute, hour, day or month), oldest first.
input_price: f64US dollars per million input tokens the savings are valued at.
report: Vec<ReportRow>§projects: Vec<(String, Summary)>§warnings: Vec<String>§row_count: usize§series: TimeSeriesStacked per-tool totals over time (the bar chart).
pie: PieShare by project (the donut).
selection: SelectionThe clicked bar and/or slice that everything above is scoped to (stale parts already dropped).
currency: CurrencyThe display currency (costs in the data stay US dollars).
updated_at: StringLocal wall-clock time the snapshot was taken (HH:MM:SS).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dashboard
impl RefUnwindSafe for Dashboard
impl Send for Dashboard
impl Sync for Dashboard
impl Unpin for Dashboard
impl UnsafeUnpin for Dashboard
impl UnwindSafe for Dashboard
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