pub struct FileEntry {
pub path: PathBuf,
pub relative_path: Option<PathBuf>,
pub kind: EntryKind,
pub size: Option<u64>,
pub modified: Option<SystemTime>,
pub readonly: Option<bool>,
}Expand description
A discovered filesystem entry.
Metadata fields are best-effort: permission errors or exotic filesystems
may leave some fields as None without failing the whole traversal when
the error policy allows it.
Fields§
§path: PathBufAbsolute or walk-produced path of the entry.
relative_path: Option<PathBuf>Path relative to the walk root, when known.
kind: EntryKindEntry kind classification.
size: Option<u64>File size in bytes, when available.
modified: Option<SystemTime>Last modification time, when available.
readonly: Option<bool>Read-only flag, when available.
Implementations§
Trait Implementations§
impl Eq for FileEntry
impl StructuralPartialEq for FileEntry
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
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