diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-02 23:00:39 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-02 23:00:39 +0800 |
| commit | ba11b73da83d5f6c66129b52cff7a45d8994a6a0 (patch) | |
| tree | 9b81d605e8732cbe07e54858020c6c1bbfd84034 /crates/vcs_data/src/data/local/local_sheet.rs | |
| parent | e982cd090efc8786f32818cfd26b2c07dd801930 (diff) | |
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
Diffstat (limited to 'crates/vcs_data/src/data/local/local_sheet.rs')
| -rw-r--r-- | crates/vcs_data/src/data/local/local_sheet.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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<LocalFilePathBuf, LocalMappingMetadata>, + #[serde(rename = "vfs")] pub(crate) vfs: HashMap<VirtualFileId, LocalFilePathBuf>, } #[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 |
