Skip to main content

interstice_abi/schema/
event.rs

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