pub struct Buckets {Show 13 fields
pub total_tokens_30d: u64,
pub total_sessions_30d: u64,
pub total_cost_30d: f64,
pub total_input_30d: u64,
pub total_output_30d: u64,
pub cost_today: f64,
pub max_session_minutes: f64,
pub by_day: Vec<TimeBucket>,
pub by_week: Vec<TimeBucket>,
pub by_month: Vec<TimeBucket>,
pub by_model: Vec<NamedBucket>,
pub by_project: Vec<NamedBucket>,
pub by_day_project: Vec<DailyInstance>,
}Expand description
Result of bucket_aggregates — mirrors the snapshot’s aggregate fields.
Fields§
§total_tokens_30d: u64§total_sessions_30d: u64§total_cost_30d: f64§total_input_30d: u64§total_output_30d: u64§cost_today: f64§max_session_minutes: f64§by_day: Vec<TimeBucket>§by_week: Vec<TimeBucket>§by_month: Vec<TimeBucket>§by_model: Vec<NamedBucket>§by_project: Vec<NamedBucket>§by_day_project: Vec<DailyInstance>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buckets
impl RefUnwindSafe for Buckets
impl Send for Buckets
impl Sync for Buckets
impl Unpin for Buckets
impl UnsafeUnpin for Buckets
impl UnwindSafe for Buckets
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