pub struct DirEntry {
pub name: String,
pub path: PathBuf,
pub is_dir: bool,
pub is_symlink: bool,
pub size: u64,
pub mode: String,
}Expand description
A directory entry in the file picker.
Fields§
§name: StringName of the file or directory.
path: PathBufFull path.
is_dir: boolWhether this is a directory.
is_symlink: boolWhether this is a symbolic link.
size: u64File size in bytes.
mode: StringPermission string (e.g., “drwxr-xr-x”).
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