diff options
Diffstat (limited to 'src/annotate.rs')
-rw-r--r-- | src/annotate.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/annotate.rs b/src/annotate.rs new file mode 100644 index 0000000..4ba97bc --- /dev/null +++ b/src/annotate.rs @@ -0,0 +1,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, + }, +} |