pub struct InlayHintLabelPart {
pub value: String,
pub tooltip: Option<Tooltip>,
pub location: Option<Location>,
pub command: Option<Command>,
}Expand description
An inlay hint label part allows for interactive and composite labels of inlay hints.
@since 3.17.0
Fields§
§value: StringThe value of this label part.
tooltip: Option<Tooltip>The tooltip text when you hover over this label part. Depending on
the client capability inlayHint.resolveSupport clients might resolve
this property late using the resolve request.
location: Option<Location>An optional source code location that represents this label part.
The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.
Depending on the client capability inlayHint.resolveSupport clients
might resolve this property late using the resolve request.
command: Option<Command>An optional command for this label part.
Depending on the client capability inlayHint.resolveSupport clients
might resolve this property late using the resolve request.
Implementations§
Trait Implementations§
Source§impl Clone for InlayHintLabelPart
impl Clone for InlayHintLabelPart
Source§fn clone(&self) -> InlayHintLabelPart
fn clone(&self) -> InlayHintLabelPart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InlayHintLabelPart
impl Debug for InlayHintLabelPart
Source§impl Default for InlayHintLabelPart
impl Default for InlayHintLabelPart
Source§fn default() -> InlayHintLabelPart
fn default() -> InlayHintLabelPart
Source§impl<'de> Deserialize<'de> for InlayHintLabelPart
impl<'de> Deserialize<'de> for InlayHintLabelPart
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>,
Source§impl PartialEq for InlayHintLabelPart
impl PartialEq for InlayHintLabelPart
Source§fn eq(&self, other: &InlayHintLabelPart) -> bool
fn eq(&self, other: &InlayHintLabelPart) -> bool
self and other values to be equal, and is used by ==.