SearchReport

Struct SearchReport 

Source
pub struct SearchReport {
Show 17 fields pub query: String, pub mode: String, pub retrieval_mode: String, pub source: String, pub strategy: String, pub start_index: usize, pub total: usize, pub observed_total: usize, pub total_is_complete: bool, pub returned: usize, pub searched_files: usize, pub searched_bytes: usize, pub candidate_files: usize, pub retained_bytes: usize, pub truncated: bool, pub truncation_reason: Option<String>, pub results: Vec<SearchMatch>,
}
Expand description

Search report returned by CLI and MCP adapters.

Fields§

§query: String

Search pattern.

§mode: String

Search mode: literal, regex, or fuzzy.

§retrieval_mode: String

Retrieval family selected by the caller.

§source: String

Source used for broad repository search.

§strategy: String

Candidate strategy used while preserving exact lexical semantics.

§start_index: usize

Pagination start index.

§total: usize

Matches observed before pagination and bounded early stop.

§observed_total: usize

Alias for total that makes bounded search semantics explicit.

§total_is_complete: bool

Whether total/observed_total is known to be the exhaustive match count.

§returned: usize

Returned matches after pagination.

§searched_files: usize

Indexed files opened while serving the query.

§searched_bytes: usize

Source bytes read while serving the query.

§candidate_files: usize

Metadata-only FTS candidates considered before exact verification.

§retained_bytes: usize

Approximate retained result bytes before adapter serialization.

§truncated: bool

Whether the search stopped after satisfying the requested page.

§truncation_reason: Option<String>

Stable first bound that stopped exhaustive search, when applicable.

§results: Vec<SearchMatch>

Search matches.

Trait Implementations§

Source§

impl Debug for SearchReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for SearchReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,