pub struct PostCompactStats {
pub total_messages: usize,
pub estimated_tokens: u64,
pub tokens_saved: u64,
pub percent_saved: u8,
}Expand description
Conversation statistics captured after compaction.
Fields§
§total_messages: usizeTotal number of messages after compaction.
estimated_tokens: u64Estimated token count after compaction.
tokens_saved: u64Tokens removed by compaction.
percent_saved: u8Percentage of tokens saved (0–100).
Trait Implementations§
Source§impl Clone for PostCompactStats
impl Clone for PostCompactStats
Source§fn clone(&self) -> PostCompactStats
fn clone(&self) -> PostCompactStats
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 moreAuto Trait Implementations§
impl Freeze for PostCompactStats
impl RefUnwindSafe for PostCompactStats
impl Send for PostCompactStats
impl Sync for PostCompactStats
impl Unpin for PostCompactStats
impl UnsafeUnpin for PostCompactStats
impl UnwindSafe for PostCompactStats
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