summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local/local_sheet.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-10 06:12:50 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-10 06:12:50 +0800
commit1127b010478e7b4deb523fed544b900fa724ef3e (patch)
tree65791b96616d9607b2784f7598e61555e4efd66b /crates/vcs_data/src/data/local/local_sheet.rs
parentcd49e78df083c9bd3a2d5fa027037ca6ab3080c8 (diff)
Fix typo in field names from "modifiy" to "modify"
Diffstat (limited to 'crates/vcs_data/src/data/local/local_sheet.rs')
-rw-r--r--crates/vcs_data/src/data/local/local_sheet.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/vcs_data/src/data/local/local_sheet.rs b/crates/vcs_data/src/data/local/local_sheet.rs
index 8ad059f..6f9924c 100644
--- a/crates/vcs_data/src/data/local/local_sheet.rs
+++ b/crates/vcs_data/src/data/local/local_sheet.rs
@@ -67,15 +67,15 @@ pub struct LocalMappingMetadata {
/// Latest modifiy check time
#[serde(rename = "check_time")]
- pub(crate) last_modifiy_check_time: SystemTime,
+ pub(crate) last_modify_check_time: SystemTime,
/// Latest modifiy check result
#[serde(rename = "modified")]
- pub(crate) last_modifiy_check_result: bool,
+ pub(crate) last_modify_check_result: bool,
/// Latest modifiy check hash result
#[serde(rename = "current_hash")]
- pub(crate) last_modifiy_check_hash: Option<String>,
+ pub(crate) last_modify_check_hash: Option<String>,
}
impl LocalSheetData {
@@ -115,9 +115,9 @@ impl LocalMappingMetadata {
version_desc_when_updated,
version_when_updated,
mapping_vfid,
- last_modifiy_check_time,
- last_modifiy_check_result,
- last_modifiy_check_hash: None,
+ last_modify_check_time: last_modifiy_check_time,
+ last_modify_check_result: last_modifiy_check_result,
+ last_modify_check_hash: None,
}
}
@@ -183,32 +183,32 @@ impl LocalMappingMetadata {
/// Getter for last_modifiy_check_time
pub fn last_modifiy_check_time(&self) -> &SystemTime {
- &self.last_modifiy_check_time
+ &self.last_modify_check_time
}
/// Setter for last_modifiy_check_time
pub fn set_last_modifiy_check_time(&mut self, time: SystemTime) {
- self.last_modifiy_check_time = time;
+ self.last_modify_check_time = time;
}
/// Getter for last_modifiy_check_result
pub fn last_modifiy_check_result(&self) -> bool {
- self.last_modifiy_check_result
+ self.last_modify_check_result
}
/// Setter for last_modifiy_check_result
pub fn set_last_modifiy_check_result(&mut self, result: bool) {
- self.last_modifiy_check_result = result;
+ self.last_modify_check_result = result;
}
/// Getter for last_modifiy_check_hash
pub fn last_modifiy_check_hash(&self) -> &Option<String> {
- &self.last_modifiy_check_hash
+ &self.last_modify_check_hash
}
/// Setter for last_modifiy_check_hash
pub fn set_last_modifiy_check_hash(&mut self, hash: Option<String>) {
- self.last_modifiy_check_hash = hash;
+ self.last_modify_check_hash = hash;
}
}
@@ -221,9 +221,9 @@ impl Default for LocalMappingMetadata {
version_desc_when_updated: Default::default(),
version_when_updated: Default::default(),
mapping_vfid: Default::default(),
- last_modifiy_check_time: SystemTime::now(),
- last_modifiy_check_result: false,
- last_modifiy_check_hash: None,
+ last_modify_check_time: SystemTime::now(),
+ last_modify_check_result: false,
+ last_modify_check_hash: None,
}
}
}