pub struct SearchOutcome {
pub text: String,
pub modeled_baseline: usize,
pub observed_tokens: usize,
pub failed: bool,
pub secret_paths_withheld: usize,
}Expand description
Result of a search: the rendered output plus both baseline figures.
Fields§
§text: StringRendered, compressed search output.
modeled_baseline: usizeModeled native-tool baseline (observed_tokens x NATIVE_GREP_BASELINE_FACTOR).
Feeds the estimated stats series.
observed_tokens: usizeTokens actually measured in the raw match lines — no model applied. Feeds the verified savings ledger.
failed: boolThe search itself failed (pattern refused, invalid regex, missing or
refused root) and text is its error message. This is the signal
callers act on — never the wording of text: a search whose output
merely begins with “ERROR” is a result, and “0 matches” is one too.
secret_paths_withheld: usizeFiles the secret-path boundary kept out of the scan (the result names
them). The ctx_search handler records the count once per call.
Auto Trait Implementations§
impl Forget for SearchOutcome
impl Freeze for SearchOutcome
impl Move for SearchOutcome
impl RefUnwindSafe for SearchOutcome
impl Send for SearchOutcome
impl Sync for SearchOutcome
impl Unpin for SearchOutcome
impl UnsafeUnpin for SearchOutcome
impl UnwindSafe for SearchOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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