pub struct TurnMetrics {
pub total: u64,
pub cache_read: u64,
pub input: u64,
pub output: u64,
pub cache_creation: u64,
pub cost: f64,
}Expand description
Per-turn token buckets + estimated cost. total is the stats token total
(fresh_in + output) the parser computes; the four buckets feed the cost view.
Fields§
§total: u64§cache_read: u64§input: u64§output: u64§cache_creation: u64§cost: f64Trait Implementations§
Source§impl Clone for TurnMetrics
impl Clone for TurnMetrics
Source§fn clone(&self) -> TurnMetrics
fn clone(&self) -> TurnMetrics
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 TurnMetrics
impl Debug for TurnMetrics
Source§impl Default for TurnMetrics
impl Default for TurnMetrics
Source§fn default() -> TurnMetrics
fn default() -> TurnMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for TurnMetrics
impl PartialEq for TurnMetrics
Source§fn eq(&self, other: &TurnMetrics) -> bool
fn eq(&self, other: &TurnMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TurnMetrics
impl StructuralPartialEq for TurnMetrics
Auto Trait Implementations§
impl Freeze for TurnMetrics
impl RefUnwindSafe for TurnMetrics
impl Send for TurnMetrics
impl Sync for TurnMetrics
impl Unpin for TurnMetrics
impl UnsafeUnpin for TurnMetrics
impl UnwindSafe for TurnMetrics
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