pub enum LayerType {
Regex,
Perplexity,
PII,
Toxicity,
MLClassifier,
Semantic,
Custom,
}Expand description
Types of layers available
Variants§
Regex
Pattern-based detection (fastest)
Perplexity
Perplexity/entropy analysis
PII
PII detection and redaction
Toxicity
Toxicity content moderation
MLClassifier
ML-based classification (requires semantic feature)
Semantic
Semantic similarity (requires semantic feature)
Custom
Custom guard
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LayerType
impl<'de> Deserialize<'de> for LayerType
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 Copy for LayerType
impl Eq for LayerType
impl StructuralPartialEq for LayerType
Auto Trait Implementations§
impl Freeze for LayerType
impl RefUnwindSafe for LayerType
impl Send for LayerType
impl Sync for LayerType
impl Unpin for LayerType
impl UnwindSafe for LayerType
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