pub struct SearchResult {
pub items: Vec<SearchItem>,
pub total: u64,
pub truncated: bool,
pub cursor: Option<String>,
pub revision: Option<RevisionQueryMetadata>,
}Expand description
daemon/search success result payload.
Serialised under the result field of ResponseEnvelope. The CLI
shim reads total + truncated separately so it can emit the same
“Showing N of M matches” banner the in-process path does.
Fields§
§items: Vec<SearchItem>The hits returned for this query, post-limit.
total: u64Pre-truncation match count. When truncated == false this equals
items.len(); when truncated == true it is at least limit + 1
(lower-bound sentinel, matching the LSP list_unused_symbols /
list_circular_dependencies convention).
truncated: boolTrue when the result was capped by SearchRequest::limit.
cursor: Option<String>Reserved for future cursor-based pagination. Tier-2 always returns
None; clients should not assume any specific format.
revision: Option<RevisionQueryMetadata>Revision metadata for revision-aware searches. Absent for legacy live-workspace searches.