pub struct SearchTelemetry {
pub lane: String,
pub query: String,
pub hit_count: Option<usize>,
pub hits: Vec<SearchHit>,
pub latency_ms: u64,
}Expand description
What a search_code call actually did (UI Phase 1).
Why: the UI traces a change back to the searches that drove it, which
needs the REAL lane rather than the mode the model requested — those
differ whenever a not-yet-built index forces a lexical retry (#2783).
What: lane is the lane that served the results; hit_count is None
when the result shape could not be counted (never a misleading 0);
hits carries each result’s path + score from that SAME parse (DOC-39
Slice B — [] in the uncountable case); latency_ms covers the whole
call including any retry.
Test: tools::trusty_search_tests::resolved_lane_reports_lexical_when_the_retry_served_it.
Fields§
§lane: StringThe trusty-search lane that actually served this query.
query: StringThe query as the model asked it.
hit_count: Option<usize>Hits returned, or None when uncountable.
hits: Vec<SearchHit>Per-hit path + score, in the order the lane returned them (DOC-39
Slice B). Empty when hit_count is None (uncountable payload).
latency_ms: u64Wall-clock duration of the whole tool call.
Trait Implementations§
Source§impl Clone for SearchTelemetry
impl Clone for SearchTelemetry
Source§impl Debug for SearchTelemetry
impl Debug for SearchTelemetry
Source§impl PartialEq for SearchTelemetry
impl PartialEq for SearchTelemetry
impl StructuralPartialEq for SearchTelemetry
Auto Trait Implementations§
impl Freeze for SearchTelemetry
impl RefUnwindSafe for SearchTelemetry
impl Send for SearchTelemetry
impl Sync for SearchTelemetry
impl Unpin for SearchTelemetry
impl UnsafeUnpin for SearchTelemetry
impl UnwindSafe for SearchTelemetry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more