pub struct Node {Show 13 fields
pub id: FileId,
pub name: String,
pub short_name: String,
pub is_dir: bool,
pub is_deleted: bool,
pub is_volume_label: bool,
pub size: u64,
pub attributes: u32,
pub first_cluster: u32,
pub contiguous: bool,
pub created: Option<FatTimestamp>,
pub modified: Option<FatTimestamp>,
pub accessed: Option<FatTimestamp>,
}Expand description
A resolved node: identity plus the fields a caller needs to navigate or read.
Fields§
§id: FileIdStable handle to this node.
name: StringEffective name (long name if valid, else 8.3).
short_name: StringRaw 8.3 short name.
is_dir: boolWhether this is a directory.
is_deleted: boolWhether this entry is deleted (0xE5).
is_volume_label: boolWhether this is the volume-label entry.
size: u64File size in bytes (0 for directories).
attributes: u32Raw attribute bits (FAT 8-bit attr or exFAT 16-bit FileAttributes).
first_cluster: u32First cluster of the node’s data (0 = empty).
contiguous: boolWhether the data is contiguous (exFAT NoFatChain; always false on FAT).
created: Option<FatTimestamp>Decoded creation timestamp (local time), if set.
modified: Option<FatTimestamp>Decoded last-modified timestamp (local time), if set.
accessed: Option<FatTimestamp>Decoded last-access timestamp (date only; local time), if set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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