pub struct InjectionAlert {
pub pattern_name: String,
pub severity: InjectionSeverity,
pub matched_text: String,
pub position: usize,
}Expand description
An alert raised when an injection pattern matches input text.
Fields§
§pattern_name: StringName of the pattern that matched.
severity: InjectionSeveritySeverity of the match.
matched_text: StringThe text that matched the pattern.
position: usizeByte position in the input where the match starts.
Trait Implementations§
Source§impl Clone for InjectionAlert
impl Clone for InjectionAlert
Source§fn clone(&self) -> InjectionAlert
fn clone(&self) -> InjectionAlert
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 InjectionAlert
impl Debug for InjectionAlert
Source§impl<'de> Deserialize<'de> for InjectionAlert
impl<'de> Deserialize<'de> for InjectionAlert
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 InjectionAlert
impl RefUnwindSafe for InjectionAlert
impl Send for InjectionAlert
impl Sync for InjectionAlert
impl Unpin for InjectionAlert
impl UnsafeUnpin for InjectionAlert
impl UnwindSafe for InjectionAlert
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