pub struct DepsConfig {
pub inlay_hints: InlayHintsConfig,
pub diagnostics: DiagnosticsConfig,
pub cache: CacheConfig,
pub cold_start: ColdStartConfig,
pub loading_indicator: LoadingIndicatorConfig,
}Expand description
Root configuration for the deps-lsp server.
This configuration can be provided by the LSP client via initialization options or workspace settings. All fields use sensible defaults if not specified.
§Examples
use deps_lsp::config::DepsConfig;
let json = r#"{
"inlay_hints": {
"enabled": true,
"up_to_date_text": "✅",
"needs_update_text": "❌ {}"
}
}"#;
let config: DepsConfig = serde_json::from_str(json).unwrap();
assert!(config.inlay_hints.enabled);Fields§
§inlay_hints: InlayHintsConfig§diagnostics: DiagnosticsConfig§cache: CacheConfig§cold_start: ColdStartConfig§loading_indicator: LoadingIndicatorConfigTrait Implementations§
Source§impl Debug for DepsConfig
impl Debug for DepsConfig
Source§impl Default for DepsConfig
impl Default for DepsConfig
Source§fn default() -> DepsConfig
fn default() -> DepsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DepsConfig
impl<'de> Deserialize<'de> for DepsConfig
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 DepsConfig
impl RefUnwindSafe for DepsConfig
impl Send for DepsConfig
impl Sync for DepsConfig
impl Unpin for DepsConfig
impl UnwindSafe for DepsConfig
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
§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