pub struct SearchCodeResult {
pub hits: Vec<CodeMatch>,
pub truncated: bool,
pub index_as_of: Option<String>,
}Expand description
Code-search outcome metadata: the provider’s own truncation signal
(plans/0008 §4) and, for indexed backends, when the index was
built (located: false covers the per-hit case; this is the
index-wide one — a lagging index is worth a badge next to the
results).
Fields§
§hits: Vec<CodeMatch>§truncated: bool§index_as_of: Option<String>v1.3: e.g. “2026-08-20T14:00:00Z”; None = live or unknown.
Trait Implementations§
Source§impl Clone for SearchCodeResult
impl Clone for SearchCodeResult
Source§fn clone(&self) -> SearchCodeResult
fn clone(&self) -> SearchCodeResult
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 moreAuto Trait Implementations§
impl Freeze for SearchCodeResult
impl RefUnwindSafe for SearchCodeResult
impl Send for SearchCodeResult
impl Sync for SearchCodeResult
impl Unpin for SearchCodeResult
impl UnsafeUnpin for SearchCodeResult
impl UnwindSafe for SearchCodeResult
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