pub struct ThreatFinding {
pub category: ThreatCategory,
pub pattern_id: String,
pub severity: Severity,
pub matched_text: String,
pub context: String,
}Expand description
A single threat finding produced by the classifier.
Fields§
§category: ThreatCategoryThreat category.
pattern_id: StringIdentifier for the pattern that matched (e.g., “aws_access_key”, “rm_rf_root”).
severity: SeveritySeverity of this finding.
matched_text: StringThe text that matched (or a representative snippet).
context: StringAdditional context about the finding.
Trait Implementations§
Source§impl Clone for ThreatFinding
impl Clone for ThreatFinding
Source§fn clone(&self) -> ThreatFinding
fn clone(&self) -> ThreatFinding
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 ThreatFinding
impl Debug for ThreatFinding
Source§impl<'de> Deserialize<'de> for ThreatFinding
impl<'de> Deserialize<'de> for ThreatFinding
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 ThreatFinding
impl RefUnwindSafe for ThreatFinding
impl Send for ThreatFinding
impl Sync for ThreatFinding
impl Unpin for ThreatFinding
impl UnsafeUnpin for ThreatFinding
impl UnwindSafe for ThreatFinding
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