#[non_exhaustive]pub struct DirEntry {
pub name: String,
pub is_directory: bool,
pub object_id: Option<u64>,
pub metadata: Option<FileMetadata>,
}Expand description
One resolved directory entry: a name, its kind, its metadata, and — for a directory — the child object id to descend into.
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.name: StringThe entry name, decoded from UTF-16LE (loss-tolerant: unpaired surrogates become U+FFFD rather than a parse failure).
is_directory: boolTrue when the entry is a directory.
object_id: Option<u64>For a directory, the child directory object identifier (resolve through
the object table to reach its own B+tree). None for a file — a file’s
record is inline in this directory, it has no separate object-table id.
metadata: Option<FileMetadata>The entry’s file/directory metadata (timestamps, size, flags).
Trait Implementations§
impl Eq for DirEntry
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin 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