pub struct Snapshot {
pub total_calls: u64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_cost_usd: f64,
}Expand description
Top-level snapshot of running totals.
Fields§
§total_calls: u64Total calls recorded.
total_input_tokens: u64Total input tokens.
total_output_tokens: u64Total output tokens.
total_cost_usd: f64Total USD cost.
Trait Implementations§
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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