Struct lsp_types::InlayHintLabelPart
source · pub struct InlayHintLabelPart {
pub value: String,
pub tooltip: Option<InlayHintLabelPartTooltip>,
pub location: Option<Location>,
pub command: Option<Command>,
}
Expand description
An inlay hint label part allows for interactive and composite labels of inlay hints.
Fields§
§value: String
The value of this label part.
tooltip: Option<InlayHintLabelPartTooltip>
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.
Trait Implementations§
source§impl Clone for InlayHintLabelPart
impl Clone for InlayHintLabelPart
source§fn clone(&self) -> InlayHintLabelPart
fn clone(&self) -> InlayHintLabelPart
1.0.0 · 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>,
Auto Trait Implementations§
impl Freeze for InlayHintLabelPart
impl RefUnwindSafe for InlayHintLabelPart
impl Send for InlayHintLabelPart
impl Sync for InlayHintLabelPart
impl Unpin for InlayHintLabelPart
impl UnwindSafe for InlayHintLabelPart
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)