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.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SearchResult
impl PartialEq for SearchResult
Source§fn eq(&self, other: &SearchResult) -> bool
fn eq(&self, other: &SearchResult) -> bool
self and other values to be equal, and is used by ==.