pub struct InjectionConfig {
pub enabled: bool,
pub block_on_detection: bool,
pub sensitivity: f32,
pub custom_patterns: Vec<String>,
}Expand description
Injection detection configuration
Fields§
§enabled: boolEnable injection detection
block_on_detection: boolBlock on detection (vs. just warn)
sensitivity: f32Sensitivity level (0.0-1.0)
custom_patterns: Vec<String>Custom patterns to detect
Trait Implementations§
Source§impl Clone for InjectionConfig
impl Clone for InjectionConfig
Source§fn clone(&self) -> InjectionConfig
fn clone(&self) -> InjectionConfig
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 InjectionConfig
impl Debug for InjectionConfig
Source§impl Default for InjectionConfig
impl Default for InjectionConfig
Source§impl<'de> Deserialize<'de> for InjectionConfig
impl<'de> Deserialize<'de> for InjectionConfig
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 InjectionConfig
impl RefUnwindSafe for InjectionConfig
impl Send for InjectionConfig
impl Sync for InjectionConfig
impl Unpin for InjectionConfig
impl UnwindSafe for InjectionConfig
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