#[non_exhaustive]pub struct CostMetrics {
pub total_cost_usd: Option<f64>,
pub total_duration_ms: Option<u64>,
pub total_api_duration_ms: Option<u64>,
pub total_lines_added: Option<u64>,
pub total_lines_removed: Option<u64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_cost_usd: Option<f64>Per ADR-0014, leaves degrade independently. total_cost_usd: None means the leaf was missing, null, or wrong-typed;
segments hide the affected metric and unrelated cost leaves
still render.
total_duration_ms: Option<u64>§total_api_duration_ms: Option<u64>§total_lines_added: Option<u64>Session lines added; u64 to match the JSON wire width and avoid
silent truncation on sessions with very large aggregated counts.
total_lines_removed: Option<u64>Trait Implementations§
Source§impl Clone for CostMetrics
impl Clone for CostMetrics
Source§fn clone(&self) -> CostMetrics
fn clone(&self) -> CostMetrics
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 CostMetrics
impl Debug for CostMetrics
impl Copy for CostMetrics
Auto Trait Implementations§
impl Freeze for CostMetrics
impl RefUnwindSafe for CostMetrics
impl Send for CostMetrics
impl Sync for CostMetrics
impl Unpin for CostMetrics
impl UnsafeUnpin for CostMetrics
impl UnwindSafe for CostMetrics
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