pub struct CompactionSummaryCandidate {
pub id: String,
pub start_seq: u64,
pub end_seq: u64,
pub label: String,
pub content: Option<String>,
pub bytes: usize,
pub latest: bool,
}Expand description
A compaction summary considered for selection.
Fields§
§id: StringStable id for the summary range.
start_seq: u64Inclusive start sequence covered by the summary.
end_seq: u64Inclusive end sequence covered by the summary.
label: StringShort label (e.g. "summary 12..47").
content: Option<String>Renderable summary text, used for prompt projection when the summary is
selected as normal context content. None when only metadata is
needed.
bytes: usizeEstimated UTF-8 byte size of the summary text.
latest: boolWhether this summary is the latest compaction.
Implementations§
Trait Implementations§
Source§impl Clone for CompactionSummaryCandidate
impl Clone for CompactionSummaryCandidate
Source§fn clone(&self) -> CompactionSummaryCandidate
fn clone(&self) -> CompactionSummaryCandidate
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 moreSource§impl Debug for CompactionSummaryCandidate
impl Debug for CompactionSummaryCandidate
impl Eq for CompactionSummaryCandidate
impl StructuralPartialEq for CompactionSummaryCandidate
Auto Trait Implementations§
impl Freeze for CompactionSummaryCandidate
impl RefUnwindSafe for CompactionSummaryCandidate
impl Send for CompactionSummaryCandidate
impl Sync for CompactionSummaryCandidate
impl Unpin for CompactionSummaryCandidate
impl UnsafeUnpin for CompactionSummaryCandidate
impl UnwindSafe for CompactionSummaryCandidate
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