summaryrefslogtreecommitdiff
path: root/src/legacy_json_output/sheets.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy_json_output/sheets.rs')
-rw-r--r--src/legacy_json_output/sheets.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/legacy_json_output/sheets.rs b/src/legacy_json_output/sheets.rs
new file mode 100644
index 0000000..2dc0c81
--- /dev/null
+++ b/src/legacy_json_output/sheets.rs
@@ -0,0 +1,16 @@
+use just_enough_vcs::vcs::data::member::MemberId;
+use serde::{Deserialize, Serialize};
+
+#[derive(Debug, Default, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct SheetListJsonResult {
+ pub my_sheets: Vec<SheetItem>,
+ pub reference_sheets: Vec<SheetItem>,
+ pub other_sheets: Vec<SheetItem>,
+}
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct SheetItem {
+ pub name: String,
+ pub holder: MemberId,
+}