pub struct SecurityFinding {
pub id: String,
pub risk_level: RiskLevel,
pub category: ThreatCategory,
pub title: String,
pub description: String,
pub node_id: Option<String>,
pub node_name: Option<String>,
pub affected_components: Vec<String>,
pub remediation: String,
pub owasp_category: Option<String>,
pub cwe_id: Option<u32>,
pub compliance_violations: Vec<ComplianceStandard>,
}Expand description
Security finding
Fields§
§id: StringFinding identifier
risk_level: RiskLevelRisk level
category: ThreatCategoryThreat category
title: StringTitle of the finding
description: StringDetailed description
node_id: Option<String>Node ID where the issue was found
node_name: Option<String>Node name for reference
affected_components: Vec<String>Affected workflow components
remediation: StringRemediation recommendation
owasp_category: Option<String>OWASP category reference
cwe_id: Option<u32>CWE (Common Weakness Enumeration) ID
compliance_violations: Vec<ComplianceStandard>Compliance standards violated
Implementations§
Source§impl SecurityFinding
impl SecurityFinding
Sourcepub fn new(
id: impl Into<String>,
risk_level: RiskLevel,
category: ThreatCategory,
title: impl Into<String>,
description: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, risk_level: RiskLevel, category: ThreatCategory, title: impl Into<String>, description: impl Into<String>, ) -> Self
Create a new security finding
Sourcepub fn with_remediation(self, remediation: impl Into<String>) -> Self
pub fn with_remediation(self, remediation: impl Into<String>) -> Self
Add remediation recommendation
Sourcepub fn with_owasp(self, category: impl Into<String>) -> Self
pub fn with_owasp(self, category: impl Into<String>) -> Self
Add OWASP category
Sourcepub fn with_compliance(self, standard: ComplianceStandard) -> Self
pub fn with_compliance(self, standard: ComplianceStandard) -> Self
Add compliance violation
Sourcepub fn with_component(self, component: impl Into<String>) -> Self
pub fn with_component(self, component: impl Into<String>) -> Self
Add affected component
Trait Implementations§
Source§impl Clone for SecurityFinding
impl Clone for SecurityFinding
Source§fn clone(&self) -> SecurityFinding
fn clone(&self) -> SecurityFinding
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 SecurityFinding
impl Debug for SecurityFinding
Source§impl<'de> Deserialize<'de> for SecurityFinding
impl<'de> Deserialize<'de> for SecurityFinding
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 SecurityFinding
impl RefUnwindSafe for SecurityFinding
impl Send for SecurityFinding
impl Sync for SecurityFinding
impl Unpin for SecurityFinding
impl UnwindSafe for SecurityFinding
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