pub struct GainSummary {
pub total_runs: usize,
pub total_images: usize,
pub total_modified: usize,
pub total_bytes_before: u64,
pub total_bytes_after: u64,
pub total_openai_before: u64,
pub total_openai_after: u64,
pub total_anthropic_before: u64,
pub total_anthropic_after: u64,
pub total_duration_ms: u64,
pub by_provider: Vec<ProviderGain>,
pub by_action: Vec<ActionGain>,
}Expand description
Aggregated gain summary.
Fields§
§total_runs: usize§total_images: usize§total_modified: usize§total_bytes_before: u64§total_bytes_after: u64§total_openai_before: u64§total_openai_after: u64§total_anthropic_before: u64§total_anthropic_after: u64§total_duration_ms: u64§by_provider: Vec<ProviderGain>Per-provider breakdown sorted by tokens saved descending.
by_action: Vec<ActionGain>Per-action breakdown sorted by count descending.
Implementations§
Source§impl GainSummary
impl GainSummary
pub fn openai_saved(&self) -> u64
pub fn anthropic_saved(&self) -> u64
pub fn openai_pct(&self) -> f64
pub fn anthropic_pct(&self) -> f64
pub fn bytes_saved(&self) -> u64
Trait Implementations§
Source§impl Clone for GainSummary
impl Clone for GainSummary
Source§fn clone(&self) -> GainSummary
fn clone(&self) -> GainSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 GainSummary
impl Debug for GainSummary
Source§impl Default for GainSummary
impl Default for GainSummary
Source§fn default() -> GainSummary
fn default() -> GainSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GainSummary
impl RefUnwindSafe for GainSummary
impl Send for GainSummary
impl Sync for GainSummary
impl Unpin for GainSummary
impl UnsafeUnpin for GainSummary
impl UnwindSafe for GainSummary
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