pub enum PiiAction {
AlertOnly,
AlertAndRedact,
RedactSilent,
}Expand description
Action to take when PII is detected in request or response content.
Variants§
AlertOnly
Generate security findings but do not modify text (default).
AlertAndRedact
Generate security findings and replace PII with [PII:TYPE] tags.
RedactSilent
Replace PII silently without generating security findings.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PiiAction
impl<'de> Deserialize<'de> for PiiAction
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
impl Eq for PiiAction
impl StructuralPartialEq for PiiAction
Auto Trait Implementations§
impl Freeze for PiiAction
impl RefUnwindSafe for PiiAction
impl Send for PiiAction
impl Sync for PiiAction
impl Unpin for PiiAction
impl UnsafeUnpin for PiiAction
impl UnwindSafe for PiiAction
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
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§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
Compare self to
key and return true if they are equal.