pub struct SecurityIssue {
pub issue: Issue,
pub vulnerability_type: VulnerabilityType,
pub attack_vector: Option<AttackVector>,
pub exploitability: f32,
pub impact: f32,
pub cvss_score: Option<f32>,
}Expand description
Security-specific issue
Fields§
§issue: IssueBase issue
vulnerability_type: VulnerabilityTypeVulnerability type
attack_vector: Option<AttackVector>Attack vector
exploitability: f32Exploitability score (0-10, CVSS)
impact: f32Impact score (0-10, CVSS)
cvss_score: Option<f32>CVSS score (0-10)
Implementations§
Source§impl SecurityIssue
impl SecurityIssue
Sourcepub fn new(
severity: Severity,
title: impl Into<String>,
description: impl Into<String>,
vulnerability_type: VulnerabilityType,
) -> Self
pub fn new( severity: Severity, title: impl Into<String>, description: impl Into<String>, vulnerability_type: VulnerabilityType, ) -> Self
Create a new security issue
Sourcepub fn calculate_cvss(&mut self)
pub fn calculate_cvss(&mut self)
Calculate CVSS score
Trait Implementations§
Source§impl Clone for SecurityIssue
impl Clone for SecurityIssue
Source§fn clone(&self) -> SecurityIssue
fn clone(&self) -> SecurityIssue
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 SecurityIssue
impl Debug for SecurityIssue
Source§impl<'de> Deserialize<'de> for SecurityIssue
impl<'de> Deserialize<'de> for SecurityIssue
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 SecurityIssue
impl RefUnwindSafe for SecurityIssue
impl Send for SecurityIssue
impl Sync for SecurityIssue
impl Unpin for SecurityIssue
impl UnwindSafe for SecurityIssue
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