pub struct WorkspaceSymbol {
pub name: String,
pub kind: i32,
pub location: WireLocation,
pub container_name: Option<String>,
}Expand description
LSP WorkspaceSymbol representing a symbol found in the workspace.
Corresponds to the LSP WorkspaceSymbol type used in workspace/symbol responses.
Fields§
§name: StringThe symbol’s name (e.g., subroutine name, package name, variable name).
kind: i32LSP symbol kind as integer (e.g., 4=Namespace, 12=Function, 13=Variable).
location: WireLocationLocation of the symbol definition in the workspace.
container_name: Option<String>Optional containing package or class name for qualified symbols.
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 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