pub struct SummaryState {
pub summary: String,
pub read_files: Vec<String>,
pub modified_files: Vec<String>,
}Expand description
A compaction’s summary and the files listed after it, which the next compaction carries on.
The default is the state before the first compaction. The summary’s entry in the
conversation is its only record: apply_summary writes it and read reads
it back.
Fields§
§summary: StringThe summary; empty before the first compaction. File lists a model wrote at its end are not kept: the lists below are the only ones.
read_files: Vec<String>The files read and not changed by the summarized messages, sorted.
modified_files: Vec<String>The files changed by the summarized messages, sorted.
Implementations§
Source§impl SummaryState
impl SummaryState
Sourcepub fn previous_summary(&self) -> Option<String>
pub fn previous_summary(&self) -> Option<String>
The summary followed by its file lists, as the next compaction’s update prompt reads it,
as pi stores it: a summary with no text still carries its lists. None when both are
empty, as before the first compaction.
Trait Implementations§
Source§impl Clone for SummaryState
impl Clone for SummaryState
Source§impl Debug for SummaryState
impl Debug for SummaryState
Source§impl Default for SummaryState
impl Default for SummaryState
impl Eq for SummaryState
Source§impl PartialEq for SummaryState
impl PartialEq for SummaryState
impl StructuralPartialEq for SummaryState
Auto Trait Implementations§
impl Forget for SummaryState
impl Freeze for SummaryState
impl Move for SummaryState
impl RefUnwindSafe for SummaryState
impl Send for SummaryState
impl Sync for SummaryState
impl Unpin for SummaryState
impl UnsafeUnpin for SummaryState
impl UnwindSafe for SummaryState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.