summaryrefslogtreecommitdiff
path: root/src/leegacy_json_output/here.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-23 03:41:13 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-23 03:41:13 +0800
commit25eb411a2e4c4207fbd8111e68a520ff20cbda73 (patch)
treecd0e6f29a7c5b22d369f1245e4862a6a4feca7eb /src/leegacy_json_output/here.rs
parentdd800eb6394a0ba5b3216bbf4dfc4a90a717599e (diff)
Rename output module to leegacy_json_output
Diffstat (limited to 'src/leegacy_json_output/here.rs')
-rw-r--r--src/leegacy_json_output/here.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/leegacy_json_output/here.rs b/src/leegacy_json_output/here.rs
new file mode 100644
index 0000000..178a467
--- /dev/null
+++ b/src/leegacy_json_output/here.rs
@@ -0,0 +1,21 @@
+use just_enough_vcs::vcs::data::{member::MemberId, vault::virtual_file::VirtualFileVersion};
+use serde::{Deserialize, Serialize};
+
+#[derive(Debug, Default, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct HereJsonResult {
+ pub items: Vec<HereJsonResultItem>,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct HereJsonResultItem {
+ pub mapping: String,
+ pub name: String,
+ pub current_version: VirtualFileVersion,
+ pub size: usize,
+ pub is_dir: bool,
+ pub exist: bool,
+ pub modified: bool,
+ pub holder: MemberId,
+}