Struct InlayHintLabelPart
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: StringThe 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§
§impl Clone for InlayHintLabelPart
impl Clone for InlayHintLabelPart
§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 more§impl Debug for InlayHintLabelPart
impl Debug for InlayHintLabelPart
§impl Default for InlayHintLabelPart
impl Default for InlayHintLabelPart
§fn default() -> InlayHintLabelPart
fn default() -> InlayHintLabelPart
§impl<'de> Deserialize<'de> for InlayHintLabelPart
impl<'de> Deserialize<'de> for InlayHintLabelPart
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlayHintLabelPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlayHintLabelPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for InlayHintLabelPart
impl Serialize for InlayHintLabelPart
§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,
Auto Trait Implementations§
impl !Freeze for InlayHintLabelPart
impl !RefUnwindSafe for InlayHintLabelPart
impl Send for InlayHintLabelPart
impl Sync for InlayHintLabelPart
impl Unpin for InlayHintLabelPart
impl UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more