1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::path::PathBuf; #[derive(Debug, Clone)] pub enum Severity { Warning, Error, } #[derive(Debug, Clone)] pub struct Diagnostic { pub rule_id: String, pub message: String, pub file: PathBuf, pub line: usize, pub severity: Severity, }