Struct lsp2::DiagnosticOptions
pub struct DiagnosticOptions {
pub identifier: Option<String>,
pub inter_file_dependencies: bool,
pub workspace_diagnostics: bool,
pub work_done_progress_options: WorkDoneProgressOptions,
}
Expand description
Diagnostic options.
@since 3.17.0
Fields§
§identifier: Option<String>
An optional identifier under which the diagnostics are managed by the client.
inter_file_dependencies: bool
Whether the language has inter file dependencies, meaning that editing code in one file can result in a different diagnostic set in another file. Inter file dependencies are common for most programming languages and typically uncommon for linters.
workspace_diagnostics: bool
The server provides support for workspace diagnostics as well.
work_done_progress_options: WorkDoneProgressOptions
Trait Implementations§
§impl Clone for DiagnosticOptions
impl Clone for DiagnosticOptions
§fn clone(&self) -> DiagnosticOptions
fn clone(&self) -> DiagnosticOptions
Returns a copy 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 more§impl Debug for DiagnosticOptions
impl Debug for DiagnosticOptions
§impl Default for DiagnosticOptions
impl Default for DiagnosticOptions
§fn default() -> DiagnosticOptions
fn default() -> DiagnosticOptions
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for DiagnosticOptions
impl<'de> Deserialize<'de> for DiagnosticOptions
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DiagnosticOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<DiagnosticOptions, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<DiagnosticOptions> for DiagnosticOptions
impl PartialEq<DiagnosticOptions> for DiagnosticOptions
§fn eq(&self, other: &DiagnosticOptions) -> bool
fn eq(&self, other: &DiagnosticOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for DiagnosticOptions
impl Serialize for DiagnosticOptions
§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,
Serialize this value into the given Serde serializer. Read more
impl Eq for DiagnosticOptions
impl StructuralEq for DiagnosticOptions
impl StructuralPartialEq for DiagnosticOptions
Auto Trait Implementations§
impl RefUnwindSafe for DiagnosticOptions
impl Send for DiagnosticOptions
impl Sync for DiagnosticOptions
impl Unpin for DiagnosticOptions
impl UnwindSafe for DiagnosticOptions
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.