pub struct Bucket {
pub calls: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost_usd: f64,
}Expand description
Aggregated counters for a single (provider, model) pair.
Fields§
§calls: u64Number of calls counted.
input_tokens: u64Total input tokens.
output_tokens: u64Total output tokens.
cost_usd: f64Total USD cost.
Trait Implementations§
impl StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnsafeUnpin for Bucket
impl UnwindSafe for Bucket
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