Struct lsp_types::WorkspaceSymbol
source · pub struct WorkspaceSymbol {
pub name: String,
pub kind: SymbolKind,
pub tags: Option<Vec<SymbolTag>>,
pub container_name: Option<String>,
pub location: OneOf<Location, WorkspaceLocation>,
pub data: Option<LSPAny>,
}
Expand description
A special workspace symbol that supports locations without a range
@since 3.17.0
Fields§
§name: String
The name of this symbol.
kind: SymbolKind
The kind of this symbol.
Tags for this completion item.
container_name: Option<String>
The name of the symbol containing this symbol. This information is for user interface purposes (e.g. to render a qualifier in the user interface if necessary). It can’t be used to re-infer a hierarchy for the document symbols.
location: OneOf<Location, WorkspaceLocation>
The location of this symbol. Whether a server is allowed to
return a location without a range depends on the client
capability workspace.symbol.resolveSupport
.
See also SymbolInformation.location
.
data: Option<LSPAny>
A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request.
Trait Implementations§
source§impl Clone for WorkspaceSymbol
impl Clone for WorkspaceSymbol
source§fn clone(&self) -> WorkspaceSymbol
fn clone(&self) -> WorkspaceSymbol
Returns a copy 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<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<WorkspaceSymbol> for WorkspaceSymbol
impl PartialEq<WorkspaceSymbol> for WorkspaceSymbol
source§fn eq(&self, other: &WorkspaceSymbol) -> bool
fn eq(&self, other: &WorkspaceSymbol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.