#[repr(C)]pub struct ArtifactEntry {
pub name_offset: u64,
pub name_length: u32,
pub hash_algorithm: u16,
pub reserved1: [u8; 2],
pub size: u64,
pub hash: [u8; 32],
pub reserved2: [u8; 72],
}Expand description
Fixed-size descriptor for a single external artifact — 128 bytes.
Field layout is stable and #[repr(C)] for zero-copy serialization.
Fields§
§name_offset: u64Offset of the artifact’s name in the manifest’s name table.
name_length: u32Length of the artifact’s name in bytes (UTF-8, no null).
hash_algorithm: u16Hash algorithm discriminant — see HashAlgorithm.
reserved1: [u8; 2]Reserved; must be zero.
size: u64Size of the external artifact in bytes.
hash: [u8; 32]32-byte hash of the full artifact content.
reserved2: [u8; 72]Reserved; must be zero. Space for future Merkle root, chunk size, or per-entry signature scope (Phase B).
Implementations§
Trait Implementations§
Source§impl AsBytes for ArtifactEntry
impl AsBytes for ArtifactEntry
Source§impl Clone for ArtifactEntry
impl Clone for ArtifactEntry
Source§fn clone(&self) -> ArtifactEntry
fn clone(&self) -> ArtifactEntry
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 ArtifactEntry
impl Debug for ArtifactEntry
impl Copy for ArtifactEntry
Auto Trait Implementations§
impl Freeze for ArtifactEntry
impl RefUnwindSafe for ArtifactEntry
impl Send for ArtifactEntry
impl Sync for ArtifactEntry
impl Unpin for ArtifactEntry
impl UnsafeUnpin for ArtifactEntry
impl UnwindSafe for ArtifactEntry
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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