pub struct PreCompactContext {
pub pins: Vec<ResolvedPin>,
pub latest_summary: Option<Summary>,
}Expand description
Structured data backing the PreCompact injection.
Built by KindlingService::pre_compact_context.
The server formats pins under ## Pinned Items (preserve across compaction) and the summary under ## Session Summary (no top-level
header).
Fields§
§pins: Vec<ResolvedPin>Active pins for the scope, newest first, each resolved to target content.
latest_summary: Option<Summary>The single latest summary across the scope’s capsules, if any.
Implementations§
Trait Implementations§
Source§impl Clone for PreCompactContext
impl Clone for PreCompactContext
Source§fn clone(&self) -> PreCompactContext
fn clone(&self) -> PreCompactContext
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 PreCompactContext
impl Debug for PreCompactContext
Source§impl PartialEq for PreCompactContext
impl PartialEq for PreCompactContext
Source§fn eq(&self, other: &PreCompactContext) -> bool
fn eq(&self, other: &PreCompactContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreCompactContext
Auto Trait Implementations§
impl Freeze for PreCompactContext
impl RefUnwindSafe for PreCompactContext
impl Send for PreCompactContext
impl Sync for PreCompactContext
impl Unpin for PreCompactContext
impl UnsafeUnpin for PreCompactContext
impl UnwindSafe for PreCompactContext
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