pub struct BundleEntry {
pub key: String,
pub kind: String,
pub offset: u64,
pub length: u64,
pub sha256: Vec<u8>,
pub meta: Option<Vec<u8>>,
}Expand description
One row of the bundle index (the CBOR footer). Describes one intact embedded
file: its logical key, its format kind, where it lives (absolute, aligned),
its length, a SHA-256 of the exact bytes, and opaque per-entry meta (a
nested CBOR blob whose schema is agreed by the producer/consumer of a given
bundle kind — e.g. an anatomy pack stores each organ’s body-system,
position and default colour there). The bundle format itself stays domain-
agnostic: it moves intact files; meta carries any domain semantics.
Fields§
§key: StringLogical key, unique within the bundle (e.g. "3d-vh-f-kidney-l.glb.10d").
kind: StringThe embedded file’s format, e.g. "10d", "q42", "p64", "manifest".
offset: u64Absolute byte offset from the start of the bundle. BUNDLE_ENTRY_ALIGN-aligned.
length: u64Length of the intact embedded file in bytes.
sha256: Vec<u8>SHA-256 of exactly [offset .. offset+length] — per-entry integrity,
identical to hashing the standalone file.
meta: Option<Vec<u8>>Opaque per-entry CBOR metadata (domain-specific), or None.
Trait Implementations§
Source§impl Clone for BundleEntry
impl Clone for BundleEntry
Source§fn clone(&self) -> BundleEntry
fn clone(&self) -> BundleEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BundleEntry
impl Debug for BundleEntry
Source§impl<'de> Deserialize<'de> for BundleEntry
impl<'de> Deserialize<'de> for BundleEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BundleEntry
impl PartialEq for BundleEntry
Source§fn eq(&self, other: &BundleEntry) -> bool
fn eq(&self, other: &BundleEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BundleEntry
impl Serialize for BundleEntry
impl Eq for BundleEntry
impl StructuralPartialEq for BundleEntry
Auto Trait Implementations§
impl Freeze for BundleEntry
impl RefUnwindSafe for BundleEntry
impl Send for BundleEntry
impl Sync for BundleEntry
impl Unpin for BundleEntry
impl UnsafeUnpin for BundleEntry
impl UnwindSafe for BundleEntry
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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>
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