#[non_exhaustive]pub struct FileEntry {
pub id: String,
pub name: String,
pub is_folder: bool,
pub size: Option<u64>,
pub modified: Option<String>,
pub modified_order: i64,
pub icon: Option<IconName>,
}Expand description
A folder or file of a FileBrowser. Nothing here touches the file system: it says what the
app knows, wherever that came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringWhat the selection keeps. The name by default.
name: StringWhat it is called.
is_folder: boolIt opens into more entries.
size: Option<u64>How many bytes it has, if that is known.
modified: Option<String>When it changed, as it should read.
modified_order: i64What sorts the dates, as a number that grows with time.
icon: Option<IconName>An icon of its own, instead of the one for a folder or a file.
Implementations§
Trait Implementations§
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