Skip to main content

Detector

Trait Detector 

Source
pub trait Detector: Send + Sync {
    // Required methods
    fn metadata(&self) -> RuleMetadata;
    fn run(&self, target: &ScanTarget) -> Vec<Finding>;
}
Expand description

A detector checks a ScanTarget and produces findings.

Required Methods§

Source

fn metadata(&self) -> RuleMetadata

Metadata about this rule (id, name, severity, CWE).

Source

fn run(&self, target: &ScanTarget) -> Vec<Finding>

Run the detector against a scan target.

Implementors§