notes/search_match.rs
1use std::path::PathBuf;
2
3#[derive(Debug, Eq, PartialEq)]
4pub struct SearchMatch {
5 pub id: usize,
6 pub score: usize,
7 pub path: PathBuf,
8 pub title: String,
9 pub matched_lines: Vec<MatchedLine>,
10}
11
12#[derive(Debug, Eq, PartialEq)]
13pub struct MatchedLine {
14 pub display_number: usize,
15 pub line_number: usize,
16 pub content: String,
17 pub matched: String,
18 pub previous: Option<String>,
19 pub next: Option<String>,
20}