pub struct UsageBreakdown {
pub window: UsageWindow,
pub generated_at: DateTime<Utc>,
pub totals: UsageTotals,
pub by_model: Vec<GroupedUsage>,
pub by_operation: Vec<GroupedUsage>,
pub limit_status: LimitStatus,
pub accounting_note: String,
}Expand description
Complete current-session aggregate report for one selected window.
Fields§
§window: UsageWindowRequested time window.
generated_at: DateTime<Utc>Report generation time.
totals: UsageTotalsAggregate across every matching record.
by_model: Vec<GroupedUsage>Matching usage grouped by exact model identifier.
by_operation: Vec<GroupedUsage>Matching usage grouped by stable operation name.
limit_status: LimitStatusCurrent UTC hour/day/month limit state, independent of the report window.
accounting_note: StringClarifies the scope and authority of the cost calculation.
Trait Implementations§
Source§impl Clone for UsageBreakdown
impl Clone for UsageBreakdown
Source§fn clone(&self) -> UsageBreakdown
fn clone(&self) -> UsageBreakdown
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 UsageBreakdown
impl Debug for UsageBreakdown
impl Eq for UsageBreakdown
Source§impl PartialEq for UsageBreakdown
impl PartialEq for UsageBreakdown
impl StructuralPartialEq for UsageBreakdown
Auto Trait Implementations§
impl Freeze for UsageBreakdown
impl RefUnwindSafe for UsageBreakdown
impl Send for UsageBreakdown
impl Sync for UsageBreakdown
impl Unpin for UsageBreakdown
impl UnsafeUnpin for UsageBreakdown
impl UnwindSafe for UsageBreakdown
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