pub struct SnapshotItem {
pub name: String,
pub size: u64,
pub mtime: u64,
pub file_type: String,
}Expand description
Snapshot item representing a file state for directory comparison.
Used to detect changes in the filesystem since the last cache update. Contains essential file metadata for comparison purposes.
Fields§
§name: StringFile name (without path)
size: u64File size in bytes
mtime: u64Last modification time as Unix timestamp
file_type: StringFile type classification (e.g., “video”, “subtitle”)
Trait Implementations§
Source§impl Clone for SnapshotItem
impl Clone for SnapshotItem
Source§fn clone(&self) -> SnapshotItem
fn clone(&self) -> SnapshotItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotItem
impl Debug for SnapshotItem
Source§impl<'de> Deserialize<'de> for SnapshotItem
impl<'de> Deserialize<'de> for SnapshotItem
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
Source§impl PartialEq for SnapshotItem
impl PartialEq for SnapshotItem
Source§impl Serialize for SnapshotItem
impl Serialize for SnapshotItem
impl Eq for SnapshotItem
impl StructuralPartialEq for SnapshotItem
Auto Trait Implementations§
impl Freeze for SnapshotItem
impl RefUnwindSafe for SnapshotItem
impl Send for SnapshotItem
impl Sync for SnapshotItem
impl Unpin for SnapshotItem
impl UnwindSafe for SnapshotItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.