summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-19 15:11:46 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-19 15:11:46 +0800
commit8f5cac50cf258727969668d9bbc853ad05e5d252 (patch)
tree30cc3f26b1d5c8827fa4040d751dee30f87d6c92 /crates
parent51c7bd958337157f0898bed4b6a0b9e2051423f8 (diff)
Add setter methods for LocalMappingMetadata fields
Diffstat (limited to 'crates')
-rw-r--r--crates/vcs_data/src/data/local/local_sheet.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/crates/vcs_data/src/data/local/local_sheet.rs b/crates/vcs_data/src/data/local/local_sheet.rs
index 980fa49..d1d889e 100644
--- a/crates/vcs_data/src/data/local/local_sheet.rs
+++ b/crates/vcs_data/src/data/local/local_sheet.rs
@@ -116,40 +116,80 @@ impl LocalMappingMetadata {
&self.hash_when_updated
}
+ /// Setter for hash_when_updated
+ pub fn set_hash_when_updated(&mut self, hash: String) {
+ self.hash_when_updated = hash;
+ }
+
/// Getter for date_when_updated
pub fn time_when_updated(&self) -> &SystemTime {
&self.time_when_updated
}
+ /// Setter for time_when_updated
+ pub fn set_time_when_updated(&mut self, time: SystemTime) {
+ self.time_when_updated = time;
+ }
+
/// Getter for size_when_updated
pub fn size_when_updated(&self) -> u64 {
self.size_when_updated
}
+ /// Setter for size_when_updated
+ pub fn set_size_when_updated(&mut self, size: u64) {
+ self.size_when_updated = size;
+ }
+
/// Getter for version_desc_when_updated
pub fn version_desc_when_updated(&self) -> &VirtualFileVersionDescription {
&self.version_desc_when_updated
}
+ /// Setter for version_desc_when_updated
+ pub fn set_version_desc_when_updated(&mut self, version_desc: VirtualFileVersionDescription) {
+ self.version_desc_when_updated = version_desc;
+ }
+
/// Getter for version_when_updated
pub fn version_when_updated(&self) -> &VirtualFileVersion {
&self.version_when_updated
}
+ /// Setter for version_when_updated
+ pub fn set_version_when_updated(&mut self, version: VirtualFileVersion) {
+ self.version_when_updated = version;
+ }
+
/// Getter for mapping_vfid
pub fn mapping_vfid(&self) -> &VirtualFileId {
&self.mapping_vfid
}
+ /// Setter for mapping_vfid
+ pub fn set_mapping_vfid(&mut self, vfid: VirtualFileId) {
+ self.mapping_vfid = vfid;
+ }
+
/// Getter for last_modifiy_check_time
pub fn last_modifiy_check_time(&self) -> &SystemTime {
&self.last_modifiy_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;
+ }
+
/// Getter for last_modifiy_check_result
pub fn last_modifiy_check_result(&self) -> bool {
self.last_modifiy_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;
+ }
}
impl Default for LocalMappingMetadata {