pub struct HostCompositionManifest { /* private fields */ }Expand description
Content-addressed aggregation of every mounted module’s schema descriptors.
Implementations§
Source§impl HostCompositionManifest
impl HostCompositionManifest
Sourcepub fn schemas(&self) -> impl Iterator<Item = &CompositionSchema>
pub fn schemas(&self) -> impl Iterator<Item = &CompositionSchema>
The aggregated schemas in canonical (id, version, role) order.
Sourcepub fn digest(&self) -> HostFingerprint
pub fn digest(&self) -> HostFingerprint
The content-addressed digest over the whole schema set (Merkle root).
Sourcepub fn find(
&self,
id: &str,
version: u32,
role: SchemaRole,
) -> Option<&CompositionSchema>
pub fn find( &self, id: &str, version: u32, role: SchemaRole, ) -> Option<&CompositionSchema>
Look up a resolved schema by its (id, version, role) identity.
Sourcepub fn verify_digest(&self) -> Result<bool, HostError>
pub fn verify_digest(&self) -> Result<bool, HostError>
Recompute and compare the sealed digest against the stored schema set.
§Errors
HostError::CanonicalEncoding if re-encoding fails.
Trait Implementations§
Source§impl Clone for HostCompositionManifest
impl Clone for HostCompositionManifest
Source§fn clone(&self) -> HostCompositionManifest
fn clone(&self) -> HostCompositionManifest
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 moreAuto Trait Implementations§
impl Freeze for HostCompositionManifest
impl RefUnwindSafe for HostCompositionManifest
impl Send for HostCompositionManifest
impl Sync for HostCompositionManifest
impl Unpin for HostCompositionManifest
impl UnsafeUnpin for HostCompositionManifest
impl UnwindSafe for HostCompositionManifest
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