pub struct ContextCompactionConfig {
pub trigger_percent: u8,
pub target_percent: u8,
pub emergency_percent: u8,
pub min_reclaim_percent: u8,
pub min_turns_between: usize,
pub checkpoint_max_chars: usize,
}Fields§
§trigger_percent: u8§target_percent: u8§emergency_percent: u8§min_reclaim_percent: u8§min_turns_between: usize§checkpoint_max_chars: usizeTrait Implementations§
Source§impl Clone for ContextCompactionConfig
impl Clone for ContextCompactionConfig
Source§impl Debug for ContextCompactionConfig
impl Debug for ContextCompactionConfig
Source§impl Default for ContextCompactionConfig
impl Default for ContextCompactionConfig
Source§impl<'de> Deserialize<'de> for ContextCompactionConfigwhere
ContextCompactionConfig: Default,
impl<'de> Deserialize<'de> for ContextCompactionConfigwhere
ContextCompactionConfig: Default,
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 ContextCompactionConfig
impl RefUnwindSafe for ContextCompactionConfig
impl Send for ContextCompactionConfig
impl Sync for ContextCompactionConfig
impl Unpin for ContextCompactionConfig
impl UnsafeUnpin for ContextCompactionConfig
impl UnwindSafe for ContextCompactionConfig
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