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/config.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/config.rs')
| -rw-r--r-- | crates/vcs_data/src/data/local/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/vcs_data/src/data/local/config.rs b/crates/vcs_data/src/data/local/config.rs index cfbc0d4..8a89c20 100644 --- a/crates/vcs_data/src/data/local/config.rs +++ b/crates/vcs_data/src/data/local/config.rs @@ -26,14 +26,17 @@ const SHEET_NAME: &str = "{sheet_name}"; pub struct LocalConfig { /// The upstream address, representing the upstream address of the local workspace, /// to facilitate timely retrieval of new updates from the upstream source. + #[serde(rename = "addr")] upstream_addr: SocketAddr, /// The member ID used by the current local workspace. /// This ID will be used to verify access permissions when connecting to the upstream server. + #[serde(rename = "as")] using_account: MemberId, /// Whether the current member is interacting as a host. /// In host mode, full Vault operation permissions are available except for adding new content. + #[serde(rename = "host")] using_host_mode: bool, /// Whether the local workspace is stained. @@ -42,9 +45,11 @@ pub struct LocalConfig { /// /// If the value is None, it means not stained; /// otherwise, it contains the stain identifier (i.e., the upstream vault's unique ID) + #[serde(rename = "up_uid")] stained_uuid: Option<VaultUuid>, /// The name of the sheet currently in use. + #[serde(rename = "use")] sheet_in_use: Option<SheetName>, } |
