pub struct ScanReport {
pub package_name: String,
pub package_version: String,
pub scan_timestamp: DateTime<Utc>,
pub issues: Vec<SecurityIssue>,
pub policy_name: String,
pub scan_duration_ms: u64,
pub scanner_version: String,
}Expand description
Vulnerability scan report
Fields§
§package_name: StringPackage name
package_version: StringPackage version
scan_timestamp: DateTime<Utc>Scan timestamp
issues: Vec<SecurityIssue>All issues found
policy_name: StringScan policy used
scan_duration_ms: u64Scan duration in milliseconds
scanner_version: StringScanner version
Implementations§
Source§impl ScanReport
impl ScanReport
Sourcepub fn critical_issues(&self) -> Vec<&SecurityIssue>
pub fn critical_issues(&self) -> Vec<&SecurityIssue>
Get critical issues
Sourcepub fn high_issues(&self) -> Vec<&SecurityIssue>
pub fn high_issues(&self) -> Vec<&SecurityIssue>
Get high severity issues
Sourcepub fn medium_issues(&self) -> Vec<&SecurityIssue>
pub fn medium_issues(&self) -> Vec<&SecurityIssue>
Get medium severity issues
Sourcepub fn low_issues(&self) -> Vec<&SecurityIssue>
pub fn low_issues(&self) -> Vec<&SecurityIssue>
Get low severity issues
Sourcepub fn has_critical_issues(&self) -> bool
pub fn has_critical_issues(&self) -> bool
Check if there are critical issues
Sourcepub fn has_high_issues(&self) -> bool
pub fn has_high_issues(&self) -> bool
Check if there are high severity issues
Sourcepub fn total_issues(&self) -> usize
pub fn total_issues(&self) -> usize
Get total issue count
Sourcepub fn risk_score(&self) -> u32
pub fn risk_score(&self) -> u32
Calculate risk score (0-100)
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 · 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<'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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more