pub struct CompactMetadata {
pub pre_tokens: u64,
pub trigger: CompactionTrigger,
}Expand description
Metadata about context compaction
Fields§
§pre_tokens: u64Number of tokens before compaction
trigger: CompactionTriggerWhat triggered the compaction
Trait Implementations§
Source§impl Clone for CompactMetadata
impl Clone for CompactMetadata
Source§fn clone(&self) -> CompactMetadata
fn clone(&self) -> CompactMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 CompactMetadata
impl Debug for CompactMetadata
Source§impl<'de> Deserialize<'de> for CompactMetadata
impl<'de> Deserialize<'de> for CompactMetadata
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 CompactMetadata
impl RefUnwindSafe for CompactMetadata
impl Send for CompactMetadata
impl Sync for CompactMetadata
impl Unpin for CompactMetadata
impl UnsafeUnpin for CompactMetadata
impl UnwindSafe for CompactMetadata
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