pub struct ManagedSchemaState { /* private fields */ }Expand description
Fingerprint-bound state of one explicitly selected managed schema scope.
Implementations§
Source§impl ManagedSchemaState
impl ManagedSchemaState
Sourcepub fn new(
format: FormatVersion,
required_capabilities: CapabilitySet,
scope: ManagedScopeBinding,
selection: ManagedFactSelection,
declared_identity: DeclaredIdentityFingerprint,
managed_declared_identity: ManagedDeclaredIdentityFingerprint,
managed_semantic_schema: ManagedSemanticSchemaFingerprint,
) -> Result<Self, Diagnostic>
pub fn new( format: FormatVersion, required_capabilities: CapabilitySet, scope: ManagedScopeBinding, selection: ManagedFactSelection, declared_identity: DeclaredIdentityFingerprint, managed_declared_identity: ManagedDeclaredIdentityFingerprint, managed_semantic_schema: ManagedSemanticSchemaFingerprint, ) -> Result<Self, Diagnostic>
Bind one exact declaration, selection, and its managed fingerprint views.
Sourcepub const fn format(&self) -> FormatVersion
pub const fn format(&self) -> FormatVersion
Return the owning schema format.
Sourcepub const fn required_capabilities(&self) -> &CapabilitySet
pub const fn required_capabilities(&self) -> &CapabilitySet
Return capabilities required by the selected schema state.
Sourcepub const fn scope(&self) -> &ManagedScopeBinding
pub const fn scope(&self) -> &ManagedScopeBinding
Return the durable managed-scope binding.
Sourcepub const fn selection(&self) -> &ManagedFactSelection
pub const fn selection(&self) -> &ManagedFactSelection
Return the exact selected fact identities.
Sourcepub const fn declared_identity(&self) -> &DeclaredIdentityFingerprint
pub const fn declared_identity(&self) -> &DeclaredIdentityFingerprint
Return the full declared-schema identity used by resolution.
Sourcepub const fn managed_declared_identity(
&self,
) -> &ManagedDeclaredIdentityFingerprint
pub const fn managed_declared_identity( &self, ) -> &ManagedDeclaredIdentityFingerprint
Return the managed declared-identity fingerprint.
Sourcepub const fn managed_semantic_schema(&self) -> &ManagedSemanticSchemaFingerprint
pub const fn managed_semantic_schema(&self) -> &ManagedSemanticSchemaFingerprint
Return the managed semantic-schema fingerprint.
Trait Implementations§
Source§impl Clone for ManagedSchemaState
impl Clone for ManagedSchemaState
Source§impl Debug for ManagedSchemaState
impl Debug for ManagedSchemaState
impl Eq for ManagedSchemaState
Source§impl PartialEq for ManagedSchemaState
impl PartialEq for ManagedSchemaState
Source§impl Serialize for ManagedSchemaState
impl Serialize for ManagedSchemaState
impl StructuralPartialEq for ManagedSchemaState
Auto Trait Implementations§
impl Freeze for ManagedSchemaState
impl RefUnwindSafe for ManagedSchemaState
impl Send for ManagedSchemaState
impl Sync for ManagedSchemaState
impl Unpin for ManagedSchemaState
impl UnsafeUnpin for ManagedSchemaState
impl UnwindSafe for ManagedSchemaState
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