pub struct Finding {
pub rule_id: String,
pub rule_name: String,
pub severity: Severity,
pub confidence: Confidence,
pub attack_category: AttackCategory,
pub message: String,
pub location: Option<SourceLocation>,
pub evidence: Vec<Evidence>,
pub taint_path: Option<TaintPath>,
pub remediation: Option<String>,
pub cwe_id: Option<String>,
}Expand description
A security finding produced by a detector.
Fields§
§rule_id: StringUnique rule identifier (e.g., “SHIELD-001”).
rule_name: StringHuman-readable rule name.
severity: SeveritySeverity level.
confidence: ConfidenceConfidence level (how certain we are this is a real issue).
attack_category: AttackCategoryMITRE ATT&CK-style category.
message: StringHuman-readable description of the finding.
location: Option<SourceLocation>Primary source location.
evidence: Vec<Evidence>Evidence supporting the finding.
taint_path: Option<TaintPath>Taint path (if applicable).
remediation: Option<String>Suggested remediation.
cwe_id: Option<String>CWE identifier (if applicable).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
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 Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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