pub struct ContainerEntry {
pub path: Vec<String>,
pub kind: EntryKind,
pub offset: u64,
pub size: u64,
pub hash: Option<[u8; 32]>,
pub target: Option<String>,
pub meta: EntryMeta,
}Expand description
一个容器条目。
Fields§
§path: Vec<String>路径组件数组。不是拼接好的字符串——数组形式天然规避 分隔符差异与路径注入(文档 §2.2)。
kind: EntryKind条目类型。
offset: u64在明文载荷流中的起始偏移。仅 File 有意义。
size: u64字节长度。仅 File 有意义。
hash: Option<[u8; 32]>内容哈希 BLAKE2b-256,用于逐文件完整性校验。
target: Option<String>符号链接目标。仅 Symlink 有意义。
meta: EntryMeta元数据。
Implementations§
Source§impl ContainerEntry
impl ContainerEntry
Sourcepub fn display_path(&self) -> String
pub fn display_path(&self) -> String
用 / 连接的显示用路径。不可直接用于落盘。
Trait Implementations§
Source§impl Clone for ContainerEntry
impl Clone for ContainerEntry
Source§impl Debug for ContainerEntry
impl Debug for ContainerEntry
impl Eq for ContainerEntry
Source§impl PartialEq for ContainerEntry
impl PartialEq for ContainerEntry
impl StructuralPartialEq for ContainerEntry
Auto Trait Implementations§
impl Forget for ContainerEntry
impl Freeze for ContainerEntry
impl RefUnwindSafe for ContainerEntry
impl Send for ContainerEntry
impl Sync for ContainerEntry
impl Unpin for ContainerEntry
impl UnsafeUnpin for ContainerEntry
impl UnwindSafe for ContainerEntry
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