pub struct SessionCostReport {Show 23 fields
pub source: String,
pub record_count: usize,
pub usage_samples: usize,
pub prompt_tokens: u64,
pub cached_input_tokens: u64,
pub cache_creation_input_tokens: u64,
pub output_tokens: u64,
pub reasoning_output_tokens: u64,
pub total_tokens: u64,
pub cached_input_ratio: Option<f64>,
pub largest_turn_total_tokens: u64,
pub runtime_event_groups: usize,
pub total_runtime_events: usize,
pub restart_churn_groups: usize,
pub max_restart_count: Option<usize>,
pub largest_turns: Vec<SessionCostTurn>,
pub runtime_events: Vec<SessionCostRuntimeEvent>,
pub loop_clusters: Vec<SessionCostLoopCluster>,
pub file_read_diagnostics: Vec<SessionCostFileReadDiagnostic>,
pub restart_churn: Vec<RestartChurnSummary>,
pub guardrails: Vec<SessionCostGuardrail>,
pub prompt_cache_plan: Option<SessionCostPromptCachePlan>,
pub warnings: Vec<String>,
}Fields§
§source: String§record_count: usize§usage_samples: usize§prompt_tokens: u64§cached_input_tokens: u64§cache_creation_input_tokens: u64§output_tokens: u64§reasoning_output_tokens: u64§total_tokens: u64§cached_input_ratio: Option<f64>§largest_turn_total_tokens: u64§runtime_event_groups: usize§total_runtime_events: usize§restart_churn_groups: usize§max_restart_count: Option<usize>§largest_turns: Vec<SessionCostTurn>§runtime_events: Vec<SessionCostRuntimeEvent>§loop_clusters: Vec<SessionCostLoopCluster>§file_read_diagnostics: Vec<SessionCostFileReadDiagnostic>§restart_churn: Vec<RestartChurnSummary>§guardrails: Vec<SessionCostGuardrail>§prompt_cache_plan: Option<SessionCostPromptCachePlan>§warnings: Vec<String>Trait Implementations§
Source§impl Clone for SessionCostReport
impl Clone for SessionCostReport
Source§fn clone(&self) -> SessionCostReport
fn clone(&self) -> SessionCostReport
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 SessionCostReport
impl Debug for SessionCostReport
Source§impl PartialEq for SessionCostReport
impl PartialEq for SessionCostReport
Source§impl Serialize for SessionCostReport
impl Serialize for SessionCostReport
impl StructuralPartialEq for SessionCostReport
Auto Trait Implementations§
impl Freeze for SessionCostReport
impl RefUnwindSafe for SessionCostReport
impl Send for SessionCostReport
impl Sync for SessionCostReport
impl Unpin for SessionCostReport
impl UnsafeUnpin for SessionCostReport
impl UnwindSafe for SessionCostReport
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