pub struct FoundSymbol {
pub semantic_path: String,
pub kind: String,
pub file: String,
pub line: u64,
pub preview: String,
}Expand description
A single symbol found by find_symbol.
Fields§
§semantic_path: StringFull semantic path (file::symbol).
kind: StringSymbol kind (e.g., “class”, “function”, “struct”, “interface”, “enum”).
file: StringFile path relative to workspace root.
line: u641-indexed line where the symbol is defined.
preview: StringFirst 100 characters of the definition line.
Trait Implementations§
Source§impl Clone for FoundSymbol
impl Clone for FoundSymbol
Source§fn clone(&self) -> FoundSymbol
fn clone(&self) -> FoundSymbol
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 FoundSymbol
impl Debug for FoundSymbol
Source§impl<'de> Deserialize<'de> for FoundSymbol
impl<'de> Deserialize<'de> for FoundSymbol
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 FoundSymbol
impl JsonSchema for FoundSymbol
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 FoundSymbol
impl RefUnwindSafe for FoundSymbol
impl Send for FoundSymbol
impl Sync for FoundSymbol
impl Unpin for FoundSymbol
impl UnsafeUnpin for FoundSymbol
impl UnwindSafe for FoundSymbol
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