#[repr(C)]pub struct FileIdentity {
pub file_id: [u8; 16],
pub parent_id: [u8; 16],
pub parent_hash: [u8; 32],
pub lineage_depth: u32,
}Expand description
File identity embedded in the Level0Root reserved area at offset 0xF00.
Exactly 68 bytes, fitting within the 252-byte reserved area. Old readers that ignore the reserved area see zeros and continue working.
Layout:
| Offset | Size | Field |
|---|---|---|
| 0x00 | 16 | file_id |
| 0x10 | 16 | parent_id |
| 0x20 | 32 | parent_hash |
| 0x40 | 4 | lineage_depth |
Fields§
§file_id: [u8; 16]Unique identifier for this file (UUID-style, 16 bytes).
parent_id: [u8; 16]Identifier of the parent file (all zeros for root files).
parent_hash: [u8; 32]SHAKE-256-256 hash of the parent’s manifest (all zeros for root).
lineage_depth: u32Lineage depth: 0 for root, incremented for each derivation.
Implementations§
Trait Implementations§
Source§impl Clone for FileIdentity
impl Clone for FileIdentity
Source§fn clone(&self) -> FileIdentity
fn clone(&self) -> FileIdentity
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 moreSource§impl Debug for FileIdentity
impl Debug for FileIdentity
Source§impl PartialEq for FileIdentity
impl PartialEq for FileIdentity
impl Copy for FileIdentity
impl Eq for FileIdentity
impl StructuralPartialEq for FileIdentity
Auto Trait Implementations§
impl Freeze for FileIdentity
impl RefUnwindSafe for FileIdentity
impl Send for FileIdentity
impl Sync for FileIdentity
impl Unpin for FileIdentity
impl UnwindSafe for FileIdentity
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