pub struct CacheData {
pub cache_version: String,
pub directory: String,
pub file_snapshot: Vec<SnapshotItem>,
pub match_operations: Vec<OpItem>,
pub created_at: u64,
pub ai_model_used: String,
pub config_hash: String,
pub original_relocation_mode: String,
pub original_backup_enabled: bool,
}Expand description
Dry-run cache data structure containing snapshot and match history.
Stores the complete state of a directory scan and match operations, enabling efficient incremental processing and result caching.
Fields§
§cache_version: StringVersion of the cache format for compatibility checking
directory: StringPath to the directory that was processed
file_snapshot: Vec<SnapshotItem>Snapshot of all files found during scanning
match_operations: Vec<OpItem>List of all match operations performed
created_at: u64Timestamp when the cache was created
ai_model_used: StringAI model used for matching operations
config_hash: StringHash of configuration used for matching
original_relocation_mode: StringRecords the relocation mode when the cache was generated
original_backup_enabled: boolRecords whether backup was enabled when the cache was generated
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CacheData
impl<'de> Deserialize<'de> for CacheData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CacheData
impl RefUnwindSafe for CacheData
impl Send for CacheData
impl Sync for CacheData
impl Unpin for CacheData
impl UnwindSafe for CacheData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more