summaryrefslogtreecommitdiffstats
path: root/src/annotate.rs
blob: 4ba97bcf323e354d153cfbc245e05d34ea9561ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::Serialize;

#[derive(Serialize)]
#[serde(tag = "type")]
enum Annotation {
    Link {
        lineno: u32,
        colno: u32,
        len: u32,
        to: String,
        title: Option<String>,
        color: Option<String>,
    },
    Markdown {
        lineno: u32,
        title: String,
        content: String,
    },
}