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§
source§impl Clone for DocumentDiagnosticReport
impl Clone for DocumentDiagnosticReport
source§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 moresource§impl Debug for DocumentDiagnosticReport
impl Debug for DocumentDiagnosticReport
source§impl<'de> Deserialize<'de> for DocumentDiagnosticReport
impl<'de> Deserialize<'de> for DocumentDiagnosticReport
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 From<DocumentDiagnosticReport> for DocumentDiagnosticReportResult
impl From<DocumentDiagnosticReport> for DocumentDiagnosticReportResult
source§fn from(from: DocumentDiagnosticReport) -> Self
fn from(from: DocumentDiagnosticReport) -> Self
Converts to this type from the input type.
source§impl From<RelatedFullDocumentDiagnosticReport> for DocumentDiagnosticReport
impl From<RelatedFullDocumentDiagnosticReport> for DocumentDiagnosticReport
source§fn from(from: RelatedFullDocumentDiagnosticReport) -> Self
fn from(from: RelatedFullDocumentDiagnosticReport) -> Self
Converts to this type from the input type.
source§impl From<RelatedUnchangedDocumentDiagnosticReport> for DocumentDiagnosticReport
impl From<RelatedUnchangedDocumentDiagnosticReport> for DocumentDiagnosticReport
source§fn from(from: RelatedUnchangedDocumentDiagnosticReport) -> Self
fn from(from: RelatedUnchangedDocumentDiagnosticReport) -> Self
Converts to this type from the input type.
source§impl PartialEq for DocumentDiagnosticReport
impl PartialEq for DocumentDiagnosticReport
source§impl Serialize for DocumentDiagnosticReport
impl Serialize for DocumentDiagnosticReport
impl StructuralPartialEq for DocumentDiagnosticReport
Auto Trait Implementations§
impl Freeze for DocumentDiagnosticReport
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)