pub trait Validator {
// Required methods
fn validate(
&self,
content: &str,
file_path: &str,
) -> Result<Vec<ValidationIssue>>;
fn name(&self) -> &str;
// Provided method
fn version(&self) -> &str { ... }
}Expand description
Trait for validators that can check package.py files.