1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct SearchResult { pub filename: String, pub content: Vec<String>, pub line: Vec<i64>, } impl Default for SearchResult { fn default() -> Self { Self { filename: "".to_string(), content: vec![], line: vec![], } } }