pub struct DiagnosticRegistrationOptions {
pub document_selector: Option<DocumentSelector>,
pub identifier: Option<String>,
pub inter_file_dependencies: bool,
pub workspace_diagnostics: bool,
pub id: Option<String>,
}Expand description
Diagnostic registration options.
@since 3.17.0
Fields§
§document_selector: Option<DocumentSelector>A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
identifier: Option<String>An optional identifier under which the diagnostics are managed by the client.
inter_file_dependencies: boolWhether 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: boolThe server provides support for workspace diagnostics as well.
id: Option<String>The id used to register the request. The id can be used to deregister the request again. See also Registration#id.
Trait Implementations§
Source§impl Clone for DiagnosticRegistrationOptions
impl Clone for DiagnosticRegistrationOptions
Source§fn clone(&self) -> DiagnosticRegistrationOptions
fn clone(&self) -> DiagnosticRegistrationOptions
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 Default for DiagnosticRegistrationOptions
impl Default for DiagnosticRegistrationOptions
Source§fn default() -> DiagnosticRegistrationOptions
fn default() -> DiagnosticRegistrationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticRegistrationOptions
impl<'de> Deserialize<'de> for DiagnosticRegistrationOptions
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
Source§impl PartialEq for DiagnosticRegistrationOptions
impl PartialEq for DiagnosticRegistrationOptions
Source§fn eq(&self, other: &DiagnosticRegistrationOptions) -> bool
fn eq(&self, other: &DiagnosticRegistrationOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DiagnosticRegistrationOptions
impl StructuralPartialEq for DiagnosticRegistrationOptions
Auto Trait Implementations§
impl Freeze for DiagnosticRegistrationOptions
impl RefUnwindSafe for DiagnosticRegistrationOptions
impl Send for DiagnosticRegistrationOptions
impl Sync for DiagnosticRegistrationOptions
impl Unpin for DiagnosticRegistrationOptions
impl UnwindSafe for DiagnosticRegistrationOptions
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