pub struct CompressionResult {
pub original_count: usize,
pub new_count: usize,
pub tokens_saved: u32,
pub summary: Option<String>,
pub strategy: CompressionStrategy,
pub timestamp: DateTime<Utc>,
}Expand description
Result of a compression operation.
Fields§
§original_count: usizeOriginal message count.
new_count: usizeNew message count after compression.
tokens_saved: u32Estimated token reduction.
summary: Option<String>Summary of removed content (if summarization was used).
strategy: CompressionStrategyStrategy used for compression.
timestamp: DateTime<Utc>When the compression occurred.
Implementations§
Trait Implementations§
Source§impl Clone for CompressionResult
impl Clone for CompressionResult
Source§fn clone(&self) -> CompressionResult
fn clone(&self) -> CompressionResult
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 CompressionResult
impl Debug for CompressionResult
Source§impl<'de> Deserialize<'de> for CompressionResult
impl<'de> Deserialize<'de> for CompressionResult
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 CompressionResult
impl RefUnwindSafe for CompressionResult
impl Send for CompressionResult
impl Sync for CompressionResult
impl Unpin for CompressionResult
impl UnsafeUnpin for CompressionResult
impl UnwindSafe for CompressionResult
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