pub struct CompressionEntry {
pub action: String,
pub summary: String,
}Expand description
One entry in the compression log — records what happened at each compression event. All tiers write here; the log is append-only and never overwritten.
Fields§
§action: StringCompression tier label: snip_compact | micro_compact | context_collapse | auto_compact
summary: StringHuman-readable summary (tool names, message counts, token counts). Empty for Snip/Micro which only record truncation stats.
Trait Implementations§
Source§impl Clone for CompressionEntry
impl Clone for CompressionEntry
Source§fn clone(&self) -> CompressionEntry
fn clone(&self) -> CompressionEntry
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 CompressionEntry
impl Debug for CompressionEntry
Source§impl<'de> Deserialize<'de> for CompressionEntry
impl<'de> Deserialize<'de> for CompressionEntry
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 CompressionEntry
impl RefUnwindSafe for CompressionEntry
impl Send for CompressionEntry
impl Sync for CompressionEntry
impl Unpin for CompressionEntry
impl UnsafeUnpin for CompressionEntry
impl UnwindSafe for CompressionEntry
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