pub struct FileState {
pub mtime: SystemTime,
pub content_hash: String,
pub chunk_ids: Vec<u64>,
}Expand description
State of a previously indexed file.
Fields§
§mtime: SystemTimeLast modification time.
content_hash: StringBlake3 hash of file content.
chunk_ids: Vec<u64>Chunk IDs produced from this file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileState
impl<'de> Deserialize<'de> for FileState
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 FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnsafeUnpin for FileState
impl UnwindSafe for FileState
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