pub struct InlayHintsConfig {
pub enabled: bool,
pub up_to_date_text: String,
pub needs_update_text: String,
}Expand description
Configuration for inlay hints (inline version annotations).
Controls whether inlay hints are displayed and customizes their appearance. Inlay hints show version information next to dependency declarations.
§Defaults
enabled:trueup_to_date_text:"✅"needs_update_text:"❌ {}"(where{}is replaced with the latest version)
§Examples
use deps_lsp::config::InlayHintsConfig;
let config = InlayHintsConfig {
enabled: true,
up_to_date_text: "OK".into(),
needs_update_text: "UPDATE {}".into(),
};
assert_eq!(config.up_to_date_text, "OK");Fields§
§enabled: bool§up_to_date_text: String§needs_update_text: StringTrait Implementations§
Source§impl Clone for InlayHintsConfig
impl Clone for InlayHintsConfig
Source§fn clone(&self) -> InlayHintsConfig
fn clone(&self) -> InlayHintsConfig
Returns a duplicate 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 moreSource§impl Debug for InlayHintsConfig
impl Debug for InlayHintsConfig
Source§impl Default for InlayHintsConfig
impl Default for InlayHintsConfig
Source§impl<'de> Deserialize<'de> for InlayHintsConfig
impl<'de> Deserialize<'de> for InlayHintsConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InlayHintsConfig
impl RefUnwindSafe for InlayHintsConfig
impl Send for InlayHintsConfig
impl Sync for InlayHintsConfig
impl Unpin for InlayHintsConfig
impl UnwindSafe for InlayHintsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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