pub struct WorkspaceSymbol {
pub name: String,
pub kind: SymbolKind,
pub uri: String,
pub range: Range,
pub qualified_name: Option<String>,
pub documentation: Option<String>,
pub container_name: Option<String>,
pub has_body: bool,
}Expand description
A symbol in the workspace for Index/Navigate workflows.
Fields§
§name: StringSymbol name without package qualification
kind: SymbolKindType of symbol (subroutine, variable, package, etc.)
uri: StringFile URI where the symbol is defined
range: RangeLine and character range of the symbol definition
qualified_name: Option<String>Fully qualified name including package (e.g., “Package::function”)
documentation: Option<String>POD documentation associated with the symbol
container_name: Option<String>Name of the containing package or class
has_body: boolWhether this symbol has a body (false for forward declarations)
Trait Implementations§
Source§impl Clone for WorkspaceSymbol
impl Clone for WorkspaceSymbol
Source§fn clone(&self) -> WorkspaceSymbol
fn clone(&self) -> WorkspaceSymbol
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkspaceSymbol
impl Debug for WorkspaceSymbol
Source§impl<'de> Deserialize<'de> for WorkspaceSymbol
impl<'de> Deserialize<'de> for WorkspaceSymbol
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceSymbol, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceSymbol, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WorkspaceSymbol> for LspWorkspaceSymbol
impl From<&WorkspaceSymbol> for LspWorkspaceSymbol
Source§fn from(sym: &WorkspaceSymbol) -> LspWorkspaceSymbol
fn from(sym: &WorkspaceSymbol) -> LspWorkspaceSymbol
Converts to this type from the input type.
Source§impl Serialize for WorkspaceSymbol
impl Serialize for WorkspaceSymbol
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceSymbol
impl RefUnwindSafe for WorkspaceSymbol
impl Send for WorkspaceSymbol
impl Sync for WorkspaceSymbol
impl Unpin for WorkspaceSymbol
impl UnsafeUnpin for WorkspaceSymbol
impl UnwindSafe for WorkspaceSymbol
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