pub struct CompactionEntry {
pub meta: EntryMeta,
pub summary: String,
pub first_kept_entry_id: Option<Option<String>>,
pub tokens_before: u64,
pub details: Option<Value>,
pub usage: Option<Usage>,
pub from_hook: Option<bool>,
pub system_message: Option<Box<Message>>,
}Fields§
§meta: EntryMeta§summary: String§first_kept_entry_id: Option<Option<String>>Some(None) when nothing is kept; None in migrated v1 files whose kept index
pointed past the end.
tokens_before: u64§details: Option<Value>§usage: Option<Usage>§from_hook: Option<bool>Produced by an extension hook rather than pi’s summarizer.
system_message: Option<Box<Message>>System prompt checkpoint at the cut; always a system message.
Trait Implementations§
Source§impl Clone for CompactionEntry
impl Clone for CompactionEntry
Source§impl Debug for CompactionEntry
impl Debug for CompactionEntry
Source§impl<'de> Deserialize<'de> for CompactionEntry
impl<'de> Deserialize<'de> for CompactionEntry
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
Source§impl PartialEq for CompactionEntry
impl PartialEq for CompactionEntry
Source§impl Serialize for CompactionEntry
impl Serialize for CompactionEntry
impl StructuralPartialEq for CompactionEntry
Auto Trait Implementations§
impl Freeze for CompactionEntry
impl RefUnwindSafe for CompactionEntry
impl Send for CompactionEntry
impl Sync for CompactionEntry
impl Unpin for CompactionEntry
impl UnsafeUnpin for CompactionEntry
impl UnwindSafe for CompactionEntry
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