pub struct RegexThreat {
pub pattern: String,
pub match_text: String,
pub position: usize,
pub category: String,
pub weight: f64,
}Expand description
A regex threat exactly as the reference _build_regex_threat emits it.
Fields§
§pattern: String§match_text: String§position: usizeUnicode code-point index into the scanned view content.
category: String§weight: f64Trait Implementations§
Source§impl Clone for RegexThreat
impl Clone for RegexThreat
Source§impl Debug for RegexThreat
impl Debug for RegexThreat
Source§impl PartialEq for RegexThreat
impl PartialEq for RegexThreat
impl StructuralPartialEq for RegexThreat
Auto Trait Implementations§
impl Freeze for RegexThreat
impl RefUnwindSafe for RegexThreat
impl Send for RegexThreat
impl Sync for RegexThreat
impl Unpin for RegexThreat
impl UnsafeUnpin for RegexThreat
impl UnwindSafe for RegexThreat
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