Skip to main content

px_detector/domain/
detector.rs

1use px_core::PxDetection;
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub enum Detected {
5    Yes(PxDetection),
6    No,
7}
8
9pub trait Detector: Send + Sync {
10    fn detect(&self, html: &str) -> Detected;
11}