pub struct FileMeta {
pub mtime: i64,
pub size: u64,
}
Expand description
FileMeta represents file meta that change on file modification It currently stores a file mtime and size tuple.
Fields§
§mtime: i64
File mtime
size: u64
File size
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileMeta
impl<'de> Deserialize<'de> for FileMeta
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 Ord for FileMeta
impl Ord for FileMeta
source§impl PartialEq for FileMeta
impl PartialEq for FileMeta
source§impl PartialOrd for FileMeta
impl PartialOrd for FileMeta
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FileMeta
impl Eq for FileMeta
impl StructuralEq for FileMeta
impl StructuralPartialEq for FileMeta
Auto Trait Implementations§
impl RefUnwindSafe for FileMeta
impl Send for FileMeta
impl Sync for FileMeta
impl Unpin for FileMeta
impl UnwindSafe for FileMeta
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