pub struct BundleVerificationContext { /* private fields */ }Expand description
Explicit capability, extension, scope, profile, and projection trust context.
Implementations§
Source§impl BundleVerificationContext
impl BundleVerificationContext
Sourcepub fn new(
semantic_profile: SemanticProfileId,
managed_scope: ManagedScopeBinding,
available_capabilities: CapabilitySet,
available_extensions: impl IntoIterator<Item = ExtensionRequirement>,
projections: impl IntoIterator<Item = BundleProjectionContext>,
) -> Result<Self, SchemaBundleError>
pub fn new( semantic_profile: SemanticProfileId, managed_scope: ManagedScopeBinding, available_capabilities: CapabilitySet, available_extensions: impl IntoIterator<Item = ExtensionRequirement>, projections: impl IntoIterator<Item = BundleProjectionContext>, ) -> Result<Self, SchemaBundleError>
Construct a closed verification context without consulting sources or providers.
Sourcepub const fn available_capabilities(&self) -> &CapabilitySet
pub const fn available_capabilities(&self) -> &CapabilitySet
Return capabilities available to schema resolution and bundle consumption.
Sourcepub const fn available_extensions(&self) -> &BTreeSet<ExtensionRequirement>
pub const fn available_extensions(&self) -> &BTreeSet<ExtensionRequirement>
Return extensions available to bundle consumption.
Sourcepub const fn managed_scope(&self) -> &ManagedScopeBinding
pub const fn managed_scope(&self) -> &ManagedScopeBinding
Return the expected durable managed scope and frozen profile binding.
Sourcepub const fn semantic_profile(&self) -> &SemanticProfileId
pub const fn semantic_profile(&self) -> &SemanticProfileId
Return the expected semantic profile identity.
Sourcepub fn projection(
&self,
target: BindingTarget,
) -> Option<&BundleProjectionContext>
pub fn projection( &self, target: BindingTarget, ) -> Option<&BundleProjectionContext>
Look up exact projection verification policy by shipped target.
Trait Implementations§
Source§impl Clone for BundleVerificationContext
impl Clone for BundleVerificationContext
Source§fn clone(&self) -> BundleVerificationContext
fn clone(&self) -> BundleVerificationContext
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 BundleVerificationContext
impl Debug for BundleVerificationContext
impl Eq for BundleVerificationContext
impl StructuralPartialEq for BundleVerificationContext
Auto Trait Implementations§
impl Freeze for BundleVerificationContext
impl RefUnwindSafe for BundleVerificationContext
impl Send for BundleVerificationContext
impl Sync for BundleVerificationContext
impl Unpin for BundleVerificationContext
impl UnsafeUnpin for BundleVerificationContext
impl UnwindSafe for BundleVerificationContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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