pub struct SemanticThreat {
pub attack_type: String,
pub score: f64,
pub fallback: bool,
pub analysis: AnalysisResult,
}Expand description
Semantic threat with the full analysis payload (_check_semantic_threats).
Fields§
§attack_type: String§score: f64probability for per-attack-type threats, the overall score for the
suspicious fallback (serialized under threat_score).
fallback: booltrue when the score is serialized under the threat_score key
(the fallback threat shape).
analysis: AnalysisResultTrait Implementations§
Source§impl Clone for SemanticThreat
impl Clone for SemanticThreat
Source§impl Debug for SemanticThreat
impl Debug for SemanticThreat
Source§impl PartialEq for SemanticThreat
impl PartialEq for SemanticThreat
impl StructuralPartialEq for SemanticThreat
Auto Trait Implementations§
impl Freeze for SemanticThreat
impl RefUnwindSafe for SemanticThreat
impl Send for SemanticThreat
impl Sync for SemanticThreat
impl Unpin for SemanticThreat
impl UnsafeUnpin for SemanticThreat
impl UnwindSafe for SemanticThreat
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