pub struct HarnessCandidate {
pub id: String,
pub label: String,
pub bytes: usize,
}Expand description
A harness context fragment considered for selection.
Harness fragments are always-loaded and never evicted by the budget policy; they are recorded so the ledger is honest about what the model sees.
Fields§
§id: StringStable id for the fragment.
label: StringShort label (e.g. "base_identity", "tool_schemas").
bytes: usizeEstimated UTF-8 byte size of the fragment.
Implementations§
Trait Implementations§
Source§impl Clone for HarnessCandidate
impl Clone for HarnessCandidate
Source§fn clone(&self) -> HarnessCandidate
fn clone(&self) -> HarnessCandidate
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 HarnessCandidate
impl Debug for HarnessCandidate
impl Eq for HarnessCandidate
Source§impl PartialEq for HarnessCandidate
impl PartialEq for HarnessCandidate
impl StructuralPartialEq for HarnessCandidate
Auto Trait Implementations§
impl Freeze for HarnessCandidate
impl RefUnwindSafe for HarnessCandidate
impl Send for HarnessCandidate
impl Sync for HarnessCandidate
impl Unpin for HarnessCandidate
impl UnsafeUnpin for HarnessCandidate
impl UnwindSafe for HarnessCandidate
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