diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/vcs_data/src/data/local/local_sheet.rs | 40 |
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 { |
