use std::collections::HashMap;
#[derive(Debug, Clone, PartialEq)]
pub enum InputEvent {
KeyPress { key: InputKey },
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum InputKey {
Char(char),
Enter,
Tab,
BackTab,
Up,
Down,
Left,
Right,
Backspace,
Delete,
Escape,
Space,
}
#[derive(Debug, Clone)]
pub enum EventResult {
Action {
event_name: String,
context: HashMap<String, serde_json::Value>,
want_response: bool,
response_path: Option<String>,
},
DataUpdate {
path: String,
value: serde_json::Value,
},
Toggle {
path: String,
},
Consumed,
}