pub struct ScanReport {
pub verdict: Verdict,
pub findings: Vec<Finding>,
pub rules_version: u32,
pub content_hash: Option<String>,
pub cached: bool,
pub custom_rules: bool,
pub warnings: Vec<String>,
}Expand description
What a scan found.
Fields§
§verdict: Verdict§findings: Vec<Finding>Sorted by file, line and rule.
rules_version: u32version of the rules that ran.
content_hash: Option<String>content_hash of the scanned files; None for a command line or
a merged report of different content.
cached: boolTaken from the cache, not scanned now.
custom_rules: boolA custom rules file (state/scan-rules.toml) was merged into the
built-in rules for this scan.
warnings: Vec<String>Problems loading the rules (a custom rules file not used, or an entry of it skipped); the built-in rules always ran.
Implementations§
Source§impl ScanReport
impl ScanReport
Trait Implementations§
Source§impl Clone for ScanReport
impl Clone for ScanReport
Source§impl Debug for ScanReport
impl Debug for ScanReport
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 Forget for ScanReport
impl Freeze for ScanReportwhere
*const u8 is !null: Freeze,
PhantomData<Finding>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
impl Move for ScanReport
impl RefUnwindSafe for ScanReport
impl Send for ScanReportwhere
RawVecInner: Send,
impl Sync for ScanReportwhere
RawVecInner: Sync,
impl Unpin for ScanReport
impl UnsafeUnpin for ScanReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Finding>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ScanReportwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.