pub struct SecurityFinding {
pub category: String,
pub pattern: String,
pub content: String,
pub location: String,
pub threat: String,
pub confidence: f64,
pub description: String,
}Expand description
A single detected injection pattern.
Fields§
§category: StringCategory: “instruction_override”, “role_impersonation”, “data_exfiltration”, “hidden_text”, “hidden_comment”, “model_targeting”, “encoded_payload”, “structural_anomaly”, “meta_injection”, “safety_override”.
pattern: StringPattern that matched.
content: StringOffending content (truncated).
location: StringLocation in the page.
threat: StringThreat level for this finding.
confidence: f64Detection confidence (0.0 - 1.0).
description: StringHuman-readable description.
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 (const: unstable) · 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 Default for SecurityFinding
impl Default for SecurityFinding
Source§fn default() -> SecurityFinding
fn default() -> SecurityFinding
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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