Enum lsp2::DocumentDiagnosticReport
pub enum DocumentDiagnosticReport {
Full(RelatedFullDocumentDiagnosticReport),
Unchanged(RelatedUnchangedDocumentDiagnosticReport),
}
Expand description
The result of a document diagnostic pull request.
A report can either be a full report containing all diagnostics for the requested document or an unchanged report indicating that nothing has changed in terms of diagnostics in comparison to the last pull request.
@since 3.17.0
Variants§
Full(RelatedFullDocumentDiagnosticReport)
A diagnostic report with a full set of problems.
Unchanged(RelatedUnchangedDocumentDiagnosticReport)
A report indicating that the last returned report is still accurate.
Trait Implementations§
§impl Clone for DocumentDiagnosticReport
impl Clone for DocumentDiagnosticReport
§fn clone(&self) -> DocumentDiagnosticReport
fn clone(&self) -> DocumentDiagnosticReport
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 DocumentDiagnosticReport
impl Debug for DocumentDiagnosticReport
§impl<'de> Deserialize<'de> for DocumentDiagnosticReport
impl<'de> Deserialize<'de> for DocumentDiagnosticReport
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DocumentDiagnosticReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<DocumentDiagnosticReport, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<DocumentDiagnosticReport> for DocumentDiagnosticReportResult
impl From<DocumentDiagnosticReport> for DocumentDiagnosticReportResult
§fn from(from: DocumentDiagnosticReport) -> DocumentDiagnosticReportResult
fn from(from: DocumentDiagnosticReport) -> DocumentDiagnosticReportResult
Converts to this type from the input type.
§impl From<RelatedFullDocumentDiagnosticReport> for DocumentDiagnosticReport
impl From<RelatedFullDocumentDiagnosticReport> for DocumentDiagnosticReport
§fn from(from: RelatedFullDocumentDiagnosticReport) -> DocumentDiagnosticReport
fn from(from: RelatedFullDocumentDiagnosticReport) -> DocumentDiagnosticReport
Converts to this type from the input type.
§impl From<RelatedUnchangedDocumentDiagnosticReport> for DocumentDiagnosticReport
impl From<RelatedUnchangedDocumentDiagnosticReport> for DocumentDiagnosticReport
§fn from(
from: RelatedUnchangedDocumentDiagnosticReport
) -> DocumentDiagnosticReport
fn from( from: RelatedUnchangedDocumentDiagnosticReport ) -> DocumentDiagnosticReport
Converts to this type from the input type.
§impl PartialEq<DocumentDiagnosticReport> for DocumentDiagnosticReport
impl PartialEq<DocumentDiagnosticReport> for DocumentDiagnosticReport
§fn eq(&self, other: &DocumentDiagnosticReport) -> bool
fn eq(&self, other: &DocumentDiagnosticReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for DocumentDiagnosticReport
impl Serialize for DocumentDiagnosticReport
§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 StructuralPartialEq for DocumentDiagnosticReport
Auto Trait Implementations§
impl RefUnwindSafe for DocumentDiagnosticReport
impl Send for DocumentDiagnosticReport
impl Sync for DocumentDiagnosticReport
impl Unpin for DocumentDiagnosticReport
impl UnwindSafe for DocumentDiagnosticReport
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