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 for WorkspaceSymbol
impl PartialEq 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 ==
.source§impl Serialize for WorkspaceSymbol
impl Serialize for WorkspaceSymbol
impl Eq for WorkspaceSymbol
impl StructuralPartialEq for WorkspaceSymbol
Auto Trait Implementations§
impl Freeze for WorkspaceSymbol
impl RefUnwindSafe for WorkspaceSymbol
impl Send for WorkspaceSymbol
impl Sync for WorkspaceSymbol
impl Unpin 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