summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local/latest_info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/vcs_data/src/data/local/latest_info.rs')
-rw-r--r--crates/vcs_data/src/data/local/latest_info.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/crates/vcs_data/src/data/local/latest_info.rs b/crates/vcs_data/src/data/local/latest_info.rs
new file mode 100644
index 0000000..5a76277
--- /dev/null
+++ b/crates/vcs_data/src/data/local/latest_info.rs
@@ -0,0 +1,28 @@
+use cfg_file::ConfigFile;
+use serde::{Deserialize, Serialize};
+
+use crate::{
+ constants::CLIENT_FILE_LATEST_INFO,
+ data::{
+ member::Member,
+ sheet::{SheetData, SheetName},
+ },
+};
+
+#[derive(Default, Serialize, Deserialize, ConfigFile)]
+#[cfg_file(path = CLIENT_FILE_LATEST_INFO)]
+pub struct LatestInfo {
+ // Sheets
+ /// My sheets, indicating which sheets I can edit
+ pub my_sheets: Vec<SheetName>,
+ /// Other sheets, indicating which sheets I can export files to (these sheets are not readable to me)
+ pub other_sheets: Vec<SheetName>,
+ /// Reference sheet data, indicating what files I can get from the reference sheet
+ pub ref_sheet_content: SheetData,
+
+ // Members
+ /// All member information of the vault, allowing me to contact them more conveniently
+ pub vault_members: Vec<Member>,
+}
+
+impl LatestInfo {}