pub struct DebugCacheTurn {Show 19 fields
pub provider: Option<String>,
pub provider_identity: Option<String>,
pub model: Option<String>,
pub auto_model: bool,
pub input_tokens: u32,
pub output_tokens: u32,
pub cache_hit_tokens: Option<u32>,
pub cache_miss_tokens: Option<u32>,
pub cache_write_tokens: Option<u32>,
pub reasoning_tokens: Option<u32>,
pub reasoning_replay_tokens: Option<u32>,
pub priced_amount: Option<f64>,
pub unpriced_reason_key: Option<String>,
pub unpriced_reason_sort_rank: Option<u8>,
pub unpriced_classes: Vec<String>,
pub priced_cache_read: u64,
pub priced_cache_miss: u64,
pub priced_cache_write: u64,
pub age_seconds: u64,
}Expand description
A bounded turn row. Pricing class partition and amount come from the authoritative host, not a second implementation of provider billing. Missing telemetry, missing audit and a measured zero remain distinct.
Fields§
§provider: Option<String>§provider_identity: Option<String>§model: Option<String>§auto_model: bool§input_tokens: u32§output_tokens: u32§cache_hit_tokens: Option<u32>§cache_miss_tokens: Option<u32>§cache_write_tokens: Option<u32>§reasoning_tokens: Option<u32>§reasoning_replay_tokens: Option<u32>§priced_amount: Option<f64>§unpriced_reason_key: Option<String>§unpriced_reason_sort_rank: Option<u8>Original host enum order for deduplicated /cache note ordering.
unpriced_classes: Vec<String>§priced_cache_read: u64§priced_cache_miss: u64§priced_cache_write: u64§age_seconds: u64Coherent age at observation time; portable display rounds seconds.
Trait Implementations§
Source§impl Clone for DebugCacheTurn
impl Clone for DebugCacheTurn
Source§impl Debug for DebugCacheTurn
impl Debug for DebugCacheTurn
Source§impl PartialEq for DebugCacheTurn
impl PartialEq for DebugCacheTurn
impl StructuralPartialEq for DebugCacheTurn
Auto Trait Implementations§
impl Freeze for DebugCacheTurn
impl RefUnwindSafe for DebugCacheTurn
impl Send for DebugCacheTurn
impl Sync for DebugCacheTurn
impl Unpin for DebugCacheTurn
impl UnsafeUnpin for DebugCacheTurn
impl UnwindSafe for DebugCacheTurn
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