Skip to main content

Detector

Trait Detector 

Source
pub trait Detector: Send + Sync {
    // Required method
    fn detect(&self, input: &str) -> Vec<Detection>;
}
Expand description

Shared detector contract for text-only PII detection.

Required Methods§

Source

fn detect(&self, input: &str) -> Vec<Detection>

Detect PII spans in the supplied input string.

Implementors§