pub struct ArchiveEntry {
pub name: String,
pub full_path: String,
pub is_dir: bool,
pub size: u64,
pub mtime: i64,
pub mode: u32,
pub blake3: String,
pub chunk_count: usize,
pub xattr: HashMap<String, String>,
pub children: Vec<usize>,
pub parent: usize,
pub manifest_index: Option<usize>,
}Expand description
A single node in the virtual archive tree (file or virtual directory).
Fields§
§name: String§full_path: StringFull path from archive root, e.g. “snap1/tree/src/main.rs”
is_dir: bool§size: u640 for virtual directory nodes (not in manifest)
mtime: i64Seconds since UNIX epoch. 0 for virtual dirs.
mode: u32§blake3: String§chunk_count: usizeNumber of content chunks. 0 for virtual dirs.
xattr: HashMap<String, String>§children: Vec<usize>Indices into ArchiveNavigator.entries for child nodes.
parent: usizeIndex of parent node (ROOT_IDX for root’s children, usize::MAX for root itself).
manifest_index: Option<usize>Index into the original manifest.files Vec. None for virtual directory nodes.
Trait Implementations§
Source§impl Clone for ArchiveEntry
impl Clone for ArchiveEntry
Source§fn clone(&self) -> ArchiveEntry
fn clone(&self) -> ArchiveEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ArchiveEntry
impl RefUnwindSafe for ArchiveEntry
impl Send for ArchiveEntry
impl Sync for ArchiveEntry
impl Unpin for ArchiveEntry
impl UnsafeUnpin for ArchiveEntry
impl UnwindSafe for ArchiveEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more