notebook_types/v0/
model.rs1use serde::{Deserialize, Serialize};
2use tsify::Tsify;
3
4use super::path::Path;
5use uuid::Uuid;
6
7#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Tsify)]
9#[serde(tag = "tag", content = "content")]
10#[tsify(into_wasm_abi, from_wasm_abi)]
11pub enum Ob {
12 Basic(Uuid),
14
15 Tabulated(Mor),
17}
18
19#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Tsify)]
21#[serde(tag = "tag", content = "content")]
22#[tsify(into_wasm_abi, from_wasm_abi)]
23pub enum Mor {
24 Basic(Uuid),
26
27 Composite(Box<Path<Ob, Mor>>),
29
30 TabulatorSquare {
32 dom: Box<Mor>,
33 cod: Box<Mor>,
34 pre: Box<Mor>,
35 post: Box<Mor>,
36 },
37}