Skip to main content

interstice_abi/schema/
event.rs

1use crate::NodeSelection;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
5pub enum SubscriptionEventSchema {
6    Insert {
7        node_selection: NodeSelection,
8        module_name: String,
9        table_name: String,
10    },
11    Update {
12        node_selection: NodeSelection,
13        module_name: String,
14        table_name: String,
15    },
16    Delete {
17        node_selection: NodeSelection,
18        module_name: String,
19        table_name: String,
20    },
21    Init,
22    Input,
23    Render,
24    File {
25        path: String,
26        recursive: bool,
27    },
28    ModulePublish,
29    ModuleRemove,
30}