pub struct DirEntry {
pub name: String,
pub path: String,
pub is_directory: bool,
pub size: u64,
}
Expand description
Directory entry
Fields§
§name: String
Entry name (relative to directory)
path: String
Full path
is_directory: bool
Whether this is a directory
size: u64
File size (0 for directories)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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