pub struct CompactionDisclosure {
pub mode: CompactionMode,
pub provider: String,
pub model: String,
pub approx_conversation_bytes: usize,
pub message_count: usize,
pub included_classes: Vec<ContentClass>,
pub excluded_classes: Vec<ContentClass>,
}Expand description
The pre-dispatch disclosure summary (spec §9.4): provider, model, and approximate disclosure every frontend surfaces BEFORE remote compaction.
Fields§
§mode: CompactionMode§provider: String“local” in local-only mode — nothing leaves the machine.
model: String§approx_conversation_bytes: usizeApproximate bytes of CONVERSATION-DERIVED content the request would carry (instruction templates not included; the rendered line labels the figure as conversation-scoped).
message_count: usize§included_classes: Vec<ContentClass>§excluded_classes: Vec<ContentClass>Implementations§
Source§impl CompactionDisclosure
impl CompactionDisclosure
Sourcepub fn render_line(&self) -> String
pub fn render_line(&self) -> String
One-line rendering shared by the frontends.
Trait Implementations§
Source§impl Clone for CompactionDisclosure
impl Clone for CompactionDisclosure
Source§impl Debug for CompactionDisclosure
impl Debug for CompactionDisclosure
Source§impl PartialEq for CompactionDisclosure
impl PartialEq for CompactionDisclosure
Source§impl Serialize for CompactionDisclosure
impl Serialize for CompactionDisclosure
impl StructuralPartialEq for CompactionDisclosure
Auto Trait Implementations§
impl Freeze for CompactionDisclosure
impl RefUnwindSafe for CompactionDisclosure
impl Send for CompactionDisclosure
impl Sync for CompactionDisclosure
impl Unpin for CompactionDisclosure
impl UnsafeUnpin for CompactionDisclosure
impl UnwindSafe for CompactionDisclosure
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.