pub struct ConservationReport {
pub generated_at: DateTime<Utc>,
pub conservation_score: f64,
pub verdict: ConservationVerdict,
pub total_tokens_used: u64,
pub total_tokens_saved: u64,
pub cache_hit_rate: f64,
pub query_count: usize,
pub target_met: bool,
}Expand description
A comprehensive conservation report.
Fields§
§generated_at: DateTime<Utc>When this report was generated.
conservation_score: f64Overall conservation score [0.0, 1.0].
verdict: ConservationVerdictThe verdict.
total_tokens_used: u64Total tokens used.
total_tokens_saved: u64Total tokens saved.
cache_hit_rate: f64Cache hit rate.
query_count: usizeNumber of queries analyzed.
target_met: boolWhether the 0.7 target is met.
Trait Implementations§
Source§impl Clone for ConservationReport
impl Clone for ConservationReport
Source§fn clone(&self) -> ConservationReport
fn clone(&self) -> ConservationReport
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 ConservationReport
impl Debug for ConservationReport
Source§impl<'de> Deserialize<'de> for ConservationReport
impl<'de> Deserialize<'de> for ConservationReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConservationReport
impl RefUnwindSafe for ConservationReport
impl Send for ConservationReport
impl Sync for ConservationReport
impl Unpin for ConservationReport
impl UnsafeUnpin for ConservationReport
impl UnwindSafe for ConservationReport
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