Struct InlayHint
pub struct InlayHint {
pub position: Position,
pub label: InlayHintLabel,
pub kind: Option<InlayHintKind>,
pub text_edits: Option<Vec<TextEdit>>,
pub tooltip: Option<InlayHintTooltip>,
pub padding_left: Option<bool>,
pub padding_right: Option<bool>,
pub data: Option<Value>,
}Expand description
Inlay hint information.
@since 3.17.0
Fields§
§position: PositionThe position of this hint.
label: InlayHintLabelThe label of this hint. A human readable string or an array of InlayHintLabelPart label parts.
Note that neither the string nor the label part can be empty.
kind: Option<InlayHintKind>The kind of this hint. Can be omitted in which case the client should fall back to a reasonable default.
text_edits: Option<Vec<TextEdit>>Optional text edits that are performed when accepting this inlay hint.
Note that edits are expected to change the document so that the inlay hint (or its nearest variant) is now part of the document and the inlay hint itself is now obsolete.
Depending on the client capability inlayHint.resolveSupport clients
might resolve this property late using the resolve request.
tooltip: Option<InlayHintTooltip>The tooltip text when you hover over this item.
Depending on the client capability inlayHint.resolveSupport clients
might resolve this property late using the resolve request.
padding_left: Option<bool>Render padding before the hint.
Note: Padding should use the editor’s background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
padding_right: Option<bool>Render padding after the hint.
Note: Padding should use the editor’s background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
data: Option<Value>A data entry field that is preserved on a inlay hint between
a textDocument/inlayHint and a inlayHint/resolve request.
Trait Implementations§
§impl<'de> Deserialize<'de> for InlayHint
impl<'de> Deserialize<'de> for InlayHint
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlayHint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlayHint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for InlayHint
impl Serialize for InlayHint
§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 !RefUnwindSafe for InlayHint
impl Freeze for InlayHint
impl Send for InlayHint
impl Sync for InlayHint
impl Unpin for InlayHint
impl UnsafeUnpin for InlayHint
impl UnwindSafe for InlayHint
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