pub struct FindSymbolResponse {
pub symbols: Vec<FoundSymbol>,
pub total_found: u32,
pub search_strategy: String,
pub duration_ms: Option<u64>,
pub did_you_mean: Option<Vec<String>>,
pub hint: Option<String>,
}Expand description
Response from find_symbol.
Fields§
§symbols: Vec<FoundSymbol>Matching symbols found.
total_found: u32Total number of matches found (before truncation).
search_strategy: StringSearch strategy used: “ripgrep+treesitter”, “ripgrep+fallback”.
duration_ms: Option<u64>Time taken in milliseconds.
did_you_mean: Option<Vec<String>>Suggested alternative symbol paths when symbols is empty.
Populated using fuzzy matching and cross-file search when the
query matches no exact symbol. Each entry is a full semantic path
(file::symbol) that can be used directly with inspect or
trace.
Absent when symbols is non-empty (exact match found).
Absent when no suggestions could be found.
hint: Option<String>Human-readable hint when no exact match found but suggestions exist.
Trait Implementations§
Source§impl Clone for FindSymbolResponse
impl Clone for FindSymbolResponse
Source§fn clone(&self) -> FindSymbolResponse
fn clone(&self) -> FindSymbolResponse
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 FindSymbolResponse
impl Debug for FindSymbolResponse
Source§impl<'de> Deserialize<'de> for FindSymbolResponse
impl<'de> Deserialize<'de> for FindSymbolResponse
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 JsonSchema for FindSymbolResponse
impl JsonSchema for FindSymbolResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FindSymbolResponse
impl RefUnwindSafe for FindSymbolResponse
impl Send for FindSymbolResponse
impl Sync for FindSymbolResponse
impl Unpin for FindSymbolResponse
impl UnsafeUnpin for FindSymbolResponse
impl UnwindSafe for FindSymbolResponse
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