pub struct PinnedCandidate {
pub id: String,
pub kind: ContextItemKind,
pub label: String,
pub source_path: Option<PathBuf>,
pub scope: String,
pub content_hash: Option<u64>,
pub artifact_handle: Option<String>,
pub bytes: usize,
}Expand description
A pinned working-set item considered for selection.
Pins are task-local evidence kept visible across turns until dropped or expired. They are not durable context.
Fields§
§id: StringStable id from item_id_for_path or an explicit handle.
kind: ContextItemKindKind of pinned context.
label: StringShort label (e.g. file path, tool-result label).
source_path: Option<PathBuf>Absolute source path when file-backed.
scope: StringScope label.
content_hash: Option<u64>Content hash when applicable.
artifact_handle: Option<String>Stable handle for bounded redacted recovery, when this pin is evidence.
bytes: usizeEstimated UTF-8 byte size of the pinned content.
Implementations§
Trait Implementations§
Source§impl Clone for PinnedCandidate
impl Clone for PinnedCandidate
Source§fn clone(&self) -> PinnedCandidate
fn clone(&self) -> PinnedCandidate
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 PinnedCandidate
impl Debug for PinnedCandidate
impl Eq for PinnedCandidate
Source§impl PartialEq for PinnedCandidate
impl PartialEq for PinnedCandidate
impl StructuralPartialEq for PinnedCandidate
Auto Trait Implementations§
impl Freeze for PinnedCandidate
impl RefUnwindSafe for PinnedCandidate
impl Send for PinnedCandidate
impl Sync for PinnedCandidate
impl Unpin for PinnedCandidate
impl UnsafeUnpin for PinnedCandidate
impl UnwindSafe for PinnedCandidate
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