pub struct FileEntry {
pub path: String,
pub hash: String,
pub file_type: FileType,
pub permissions: Option<Permissions>,
pub size: Option<usize>,
}Expand description
Extended file information including permissions and type.
Returned by FsOpsBuilder::stat() and FindBuilder::execute().
Fields§
§path: StringFile path relative to repository root
hash: StringSHA3-256 hash of file content
file_type: FileTypeType of file (regular, executable, symlink)
permissions: Option<Permissions>Unix permissions (if tracked)
size: Option<usize>File size in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnwindSafe for FileEntry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)