pub struct TypedPage {
pub page_id: PageId,
pub page_type: PageType,
pub origin: PageOrigin,
pub tokens: u32,
pub body: Arc<str>,
pub schema_hint: Option<SchemaHint>,
}Expand description
A classified context segment ready for invariant-aware compaction.
TypedPage is the unit of work passed to compaction boundaries. The
PageId is content-stable: the same source bytes always produce the same
id, enabling the compactor to skip already-compacted pages.
Fields§
§page_id: PageIdStable content-addressed identifier.
page_type: PageTypeClassification determining which invariant applies.
origin: PageOriginProvenance of this page (for audit records).
tokens: u32Token count of the original body.
body: Arc<str>Body text shared across potential clones.
schema_hint: Option<SchemaHint>Body format hint (populated for ToolOutput only; None otherwise).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypedPage
impl RefUnwindSafe for TypedPage
impl Send for TypedPage
impl Sync for TypedPage
impl Unpin for TypedPage
impl UnsafeUnpin for TypedPage
impl UnwindSafe for TypedPage
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