pub struct ManifestBinding {
pub spool: SpoolId,
pub facet: ManifestFacet,
pub owner_kind: ManifestOwnerKind,
pub owner_hash: ContentHash,
pub owner_decoded_size: u64,
pub content_root: ContentHash,
}Expand description
An immutable (spool, facet, owner) -> content_root binding.
Fields§
§spool: SpoolId§facet: ManifestFacet§owner_kind: ManifestOwnerKind§owner_hash: ContentHash§owner_decoded_size: u64§content_root: ContentHashImplementations§
Source§impl ManifestBinding
impl ManifestBinding
Sourcepub fn address(&self) -> ContentHash
pub fn address(&self) -> ContentHash
The binding’s content address — BLAKE3 of its canonical bytes.
Sourcepub fn decode(
bytes: &[u8],
) -> Result<ManifestBinding, ManifestBindingDecodeError>
pub fn decode( bytes: &[u8], ) -> Result<ManifestBinding, ManifestBindingDecodeError>
Decode strictly, rejecting truncation, trailing bytes, unknown kinds, invalid spool/facet tokens, and any non-canonical spelling.
Trait Implementations§
Source§impl Clone for ManifestBinding
impl Clone for ManifestBinding
Source§fn clone(&self) -> ManifestBinding
fn clone(&self) -> ManifestBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ManifestBinding
impl Debug for ManifestBinding
impl Eq for ManifestBinding
Source§impl PartialEq for ManifestBinding
impl PartialEq for ManifestBinding
impl StructuralPartialEq for ManifestBinding
Auto Trait Implementations§
impl Freeze for ManifestBinding
impl RefUnwindSafe for ManifestBinding
impl Send for ManifestBinding
impl Sync for ManifestBinding
impl Unpin for ManifestBinding
impl UnsafeUnpin for ManifestBinding
impl UnwindSafe for ManifestBinding
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