Struct lsp2::WorkspaceSymbol
pub struct WorkspaceSymbol {
pub name: String,
pub kind: SymbolKind,
pub tags: Option<Vec<SymbolTag, Global>>,
pub container_name: Option<String>,
pub location: OneOf<Location, WorkspaceLocation>,
pub data: Option<Value>,
}
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<Value>
A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request.
Trait Implementations§
§impl Clone for WorkspaceSymbol
impl Clone for WorkspaceSymbol
§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 more§impl Debug for WorkspaceSymbol
impl Debug for WorkspaceSymbol
§impl<'de> Deserialize<'de> for WorkspaceSymbol
impl<'de> Deserialize<'de> for WorkspaceSymbol
§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
§impl PartialEq<WorkspaceSymbol> for WorkspaceSymbol
impl PartialEq<WorkspaceSymbol> for WorkspaceSymbol
§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 ==
.§impl Serialize for WorkspaceSymbol
impl Serialize for WorkspaceSymbol
§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
impl Eq for WorkspaceSymbol
impl StructuralEq for WorkspaceSymbol
impl StructuralPartialEq for WorkspaceSymbol
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.