pub trait Scanner {
// Required methods
fn scan_file(&self, path: &Path) -> Result<Vec<Finding>>;
fn scan_directory(&self, dir: &Path) -> Result<Vec<Finding>>;
// Provided method
fn scan_path(&self, path: &Path) -> Result<Vec<Finding>> { ... }
}Expand description
Core trait for all security scanners.