pub struct ScanReport {
pub language: Language,
pub comments: Vec<Comment>,
pub diagnostics: Vec<Diagnostic>,
pub valid: bool,
}Expand description
Everything a scan found.
Fields§
§language: LanguageThe language it was scanned as.
comments: Vec<Comment>Every comment, in source order, non-overlapping.
diagnostics: Vec<Diagnostic>Everything the scanner had to say about the source.
valid: boolFalse when any diagnostic is a Severity::Error.
Trait Implementations§
Source§impl Clone for ScanReport
impl Clone for ScanReport
Source§fn clone(&self) -> ScanReport
fn clone(&self) -> ScanReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScanReport
impl Debug for ScanReport
Source§impl Default for ScanReport
impl Default for ScanReport
Source§fn default() -> ScanReport
fn default() -> ScanReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScanReport
impl<'de> Deserialize<'de> for ScanReport
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
impl Eq for ScanReport
Source§impl PartialEq for ScanReport
impl PartialEq for ScanReport
Source§impl Serialize for ScanReport
impl Serialize for ScanReport
impl StructuralPartialEq for ScanReport
Auto Trait Implementations§
impl Freeze for ScanReport
impl RefUnwindSafe for ScanReport
impl Send for ScanReport
impl Sync for ScanReport
impl Unpin for ScanReport
impl UnsafeUnpin for ScanReport
impl UnwindSafe for ScanReport
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