pub struct SingleFile {
pub status: FileStatus,
pub last_modified: NaiveDateTime,
pub timestamp: NaiveDateTime,
pub references: HashSet<PathBuf>,
/* private fields */
}
Expand description
Struct that contains information about single file in rif
Fields§
§status: FileStatus
Current status of the file
last_modified: NaiveDateTime
Current last modified time stored in rif.
This is not same with system’s last modified time
timestamp: NaiveDateTime
Timestamp of the file
This is a critera to compare file status
references: HashSet<PathBuf>
Files set that contains referencing files
Implementations§
Source§impl SingleFile
impl SingleFile
Trait Implementations§
Source§impl Debug for SingleFile
impl Debug for SingleFile
Source§impl<'de> Deserialize<'de> for SingleFile
impl<'de> Deserialize<'de> for SingleFile
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 SingleFile
impl RefUnwindSafe for SingleFile
impl Send for SingleFile
impl Sync for SingleFile
impl Unpin for SingleFile
impl UnwindSafe for SingleFile
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