jotter/web/
mod.rs

1use serde_json::Value;
2
3pub mod all;
4pub mod get;
5pub mod help;
6pub mod remove;
7pub mod serve;
8pub mod set;
9
10pub mod server;
11
12#[derive(Debug)]
13pub enum NotesResponse {
14    NoNotes,
15    SomeNotes(Vec<Value>),
16
17    SetNoteSuccess,
18    SetNoteLabelAlreadyExist,
19
20    GetNoteNotFound,
21    GetNoteFound(String),
22
23    RemoveSucess,
24    RemoveNoteDoesntExist,
25
26    InvalidCommand,
27    CommandError,
28}