pub struct SearchResult {
pub items: Vec<SearchItem>,
pub total: u64,
pub truncated: bool,
pub cursor: Option<String>,
}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.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchResult
impl PartialEq for SearchResult
Source§fn eq(&self, other: &SearchResult) -> bool
fn eq(&self, other: &SearchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchResult
impl Serialize for SearchResult
impl StructuralPartialEq for SearchResult
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin for SearchResult
impl UnwindSafe for SearchResult
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