pub struct SearchItem {
pub name: String,
pub qualified_name: String,
pub kind: String,
pub language: String,
pub file_path: String,
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub score: Option<f32>,
}Expand description
One search hit. Flat shape (no LSP Location wrapper) so the protocol
crate stays leaf-only; the CLI shim converts to DisplaySymbol for
output formatting.
Line/column semantics match DisplaySymbol:
start_line/end_lineare 1-basedstart_column/end_columnare 0-based byte offsets
Fields§
§name: String§qualified_name: String§kind: String§language: String§file_path: String§start_line: u32§start_column: u32§end_line: u32§end_column: u32§score: Option<f32>Fuzzy match score. Absent for regex / exact hits.
Trait Implementations§
Source§impl Clone for SearchItem
impl Clone for SearchItem
Source§fn clone(&self) -> SearchItem
fn clone(&self) -> SearchItem
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 SearchItem
impl Debug for SearchItem
Source§impl<'de> Deserialize<'de> for SearchItem
impl<'de> Deserialize<'de> for SearchItem
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 SearchItem
impl PartialEq for SearchItem
Source§fn eq(&self, other: &SearchItem) -> bool
fn eq(&self, other: &SearchItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchItem
impl Serialize for SearchItem
impl StructuralPartialEq for SearchItem
Auto Trait Implementations§
impl Freeze for SearchItem
impl RefUnwindSafe for SearchItem
impl Send for SearchItem
impl Sync for SearchItem
impl Unpin for SearchItem
impl UnsafeUnpin for SearchItem
impl UnwindSafe for SearchItem
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