pub struct Entry {
pub kind: EntryKind,
pub parent: u32,
pub name: u32,
pub mode: u32,
pub mtime_secs: u64,
pub mtime_nsec: u32,
pub content_hash: [u8; 32],
pub num_blocks: u32,
pub blocks: Vec<Block>,
pub symlink_target: u32,
}Fields§
§kind: EntryKindType of this entry (file, directory, or symlink).
parent: u32Index of the parent directory entry, or u32::MAX for top-level entries.
name: u32Offset into the string table for this entry’s name.
mode: u32Unix file mode (permissions and type bits).
mtime_secs: u64Modification time: seconds since Unix epoch.
mtime_nsec: u32Modification time: nanosecond component.
content_hash: [u8; 32]BLAKE3 hash of the file content (files only).
num_blocks: u32Number of compressed payload blocks (files only).
blocks: Vec<Block>Compressed payload blocks containing this file’s data (files only).
symlink_target: u32Offset into the string table for the symlink target path (symlinks only).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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