pub struct CompressionCandidatePlan {Show 13 fields
pub compressed_message_ids: Vec<String>,
pub messages_to_summarize: Vec<Message>,
pub source_tokens: u32,
pub previous_represented_source_tokens: u32,
pub represented_source_tokens: u32,
pub target_summary_tokens: u32,
pub summary_target_ratio: f64,
pub active_usage_before_percent: f64,
pub projected_usage_after_percent: f64,
pub trigger_percent: u8,
pub target_percent: u8,
pub segments_removed: usize,
pub trigger_type: CompressionTriggerType,
/* private fields */
}Expand description
Immutable archive selection produced before any summarization request is sent. The final summary must represent exactly this set.
Fields§
§compressed_message_ids: Vec<String>§messages_to_summarize: Vec<Message>§source_tokens: u32§previous_represented_source_tokens: u32§represented_source_tokens: u32§target_summary_tokens: u32§summary_target_ratio: f64§active_usage_before_percent: f64§projected_usage_after_percent: f64§trigger_percent: u8§target_percent: u8§segments_removed: usize§trigger_type: CompressionTriggerTypeTrait Implementations§
Source§impl Clone for CompressionCandidatePlan
impl Clone for CompressionCandidatePlan
Source§fn clone(&self) -> CompressionCandidatePlan
fn clone(&self) -> CompressionCandidatePlan
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 CompressionCandidatePlan
impl RefUnwindSafe for CompressionCandidatePlan
impl Send for CompressionCandidatePlan
impl Sync for CompressionCandidatePlan
impl Unpin for CompressionCandidatePlan
impl UnsafeUnpin for CompressionCandidatePlan
impl UnwindSafe for CompressionCandidatePlan
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