pub struct IndexedFile {
pub path: String,
pub is_dir: bool,
pub mtime: i64,
pub lines: usize,
}Expand description
Metadata about an indexed file
Fields§
§path: StringFile path relative to the repo root.
is_dir: boolTrue if this entry is a directory rather than a file.
mtime: i64Modification timestamp in seconds since Unix epoch.
lines: usizeLine count; 0 for directories.
Trait Implementations§
Source§impl Clone for IndexedFile
impl Clone for IndexedFile
Source§fn clone(&self) -> IndexedFile
fn clone(&self) -> IndexedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexedFile
impl Debug for IndexedFile
Source§impl<'de> Deserialize<'de> for IndexedFile
impl<'de> Deserialize<'de> for IndexedFile
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 IndexedFile
impl RefUnwindSafe for IndexedFile
impl Send for IndexedFile
impl Sync for IndexedFile
impl Unpin for IndexedFile
impl UnsafeUnpin for IndexedFile
impl UnwindSafe for IndexedFile
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