From ba11b73da83d5f6c66129b52cff7a45d8994a6a0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 2 Jan 2026 23:00:39 +0800 Subject: Rename vault admin to host and add serde renames - Rename `vault_admin_list` to `vault_host_list` in config and actions - Add `#[serde(rename)]` attributes to all data structures for shorter JSON keys - Update field renames in LocalConfig, LatestFileData, LatestInfo, LocalSheetData, Member, SheetData, Share, and VirtualFileMeta --- crates/vcs_data/src/data/local/local_sheet.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/vcs_data/src/data/local/local_sheet.rs') diff --git a/crates/vcs_data/src/data/local/local_sheet.rs b/crates/vcs_data/src/data/local/local_sheet.rs index 4ebdaac..8ad059f 100644 --- a/crates/vcs_data/src/data/local/local_sheet.rs +++ b/crates/vcs_data/src/data/local/local_sheet.rs @@ -32,16 +32,17 @@ pub struct LocalSheet<'a> { #[cfg_file(path = CLIENT_FILE_LOCAL_SHEET_NOSET)] // Do not use LocalSheet::write or LocalSheet::read pub struct LocalSheetData { /// Local file path to metadata mapping. - #[serde(rename = "mapping")] + #[serde(rename = "map")] pub(crate) mapping: HashMap, + #[serde(rename = "vfs")] pub(crate) vfs: HashMap, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct LocalMappingMetadata { /// Hash value generated immediately after the file is downloaded to the local workspace - #[serde(rename = "hash")] + #[serde(rename = "base_hash")] pub(crate) hash_when_updated: String, /// Time when the file was downloaded to the local workspace @@ -57,7 +58,7 @@ pub struct LocalMappingMetadata { pub(crate) version_desc_when_updated: VirtualFileVersionDescription, /// Version when the file was downloaded to the local workspace - #[serde(rename = "version")] + #[serde(rename = "ver")] pub(crate) version_when_updated: VirtualFileVersion, /// Virtual file ID corresponding to the local path -- cgit