pub enum NeutralizationMode {
ReportOnly,
Interactive,
Automatic,
}Expand description
Neutralization mode configuration
Determines how the neutralizer responds to detected threats. This allows flexible deployment from monitoring to active protection.
Variants§
ReportOnly
Only report threats without modifying content
Use Case: Initial deployment, testing, compliance monitoring Behavior: Logs all threats but returns original content unchanged Security Impact: No protection, only visibility Recommended For: Pre-production testing, false positive analysis
Interactive
Ask user for confirmation before neutralizing each threat
Use Case: Semi-automated workflows, high-value content Behavior: Prompts for user decision on each threat Security Impact: Delayed protection, requires human availability Recommended For: Content management systems, editorial workflows
Automatic
Automatically neutralize all detected threats
Use Case: Production systems, real-time protection Behavior: Immediately applies configured neutralization actions Security Impact: Maximum protection, potential for false positives Recommended For: API gateways, web applications, automated systems
Trait Implementations§
Source§impl Clone for NeutralizationMode
impl Clone for NeutralizationMode
Source§fn clone(&self) -> NeutralizationMode
fn clone(&self) -> NeutralizationMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NeutralizationMode
impl Debug for NeutralizationMode
Source§impl Default for NeutralizationMode
impl Default for NeutralizationMode
Source§impl<'de> Deserialize<'de> for NeutralizationMode
impl<'de> Deserialize<'de> for NeutralizationMode
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>,
Source§impl PartialEq for NeutralizationMode
impl PartialEq for NeutralizationMode
Source§impl Serialize for NeutralizationMode
impl Serialize for NeutralizationMode
impl Copy for NeutralizationMode
impl Eq for NeutralizationMode
impl StructuralPartialEq for NeutralizationMode
Auto Trait Implementations§
impl Freeze for NeutralizationMode
impl RefUnwindSafe for NeutralizationMode
impl Send for NeutralizationMode
impl Sync for NeutralizationMode
impl Unpin for NeutralizationMode
impl UnwindSafe for NeutralizationMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more