Expand description
Versioned schema identities, facts, provenance, and declared fingerprints.
This module contains no parser, filesystem, provider, binding, query, or migration dependencies. Trusted values are created only through validating constructors; canonical decoding will use explicit validated wire types.
Re-exports§
pub use crate::managed_scope::ManagedScopeBinding;pub use crate::managed_scope::ManagedScopeId;pub use crate::managed_scope::ManagedScopeProfileBinding;pub use crate::managed_scope::ManagedScopeProfileFingerprint;pub use crate::managed_scope::ManagedScopeProfileId;pub use crate::managed_scope::SemanticProfileFingerprint;pub use crate::schema_delta::ManagedFactSelection;pub use crate::schema_delta::ManagedSchemaState;pub use crate::schema_delta::PatchFormatVersion;pub use crate::schema_delta::SchemaDelta;pub use crate::schema_delta::SchemaOperation;pub use crate::schema_delta::SchemaOperationKind;pub use crate::schema_delta::decode_schema_delta;pub use crate::schema_delta::encode_schema_delta;pub use crate::schema_fingerprint::ManagedDeclaredIdentityFingerprint;pub use crate::schema_fingerprint::ManagedSemanticSchemaFingerprint;pub use crate::schema_fingerprint::SchemaDocumentSetFingerprint;pub use crate::schema_fingerprint::SemanticSchemaFingerprint;pub use crate::semantic_profile::InterfaceKind;pub use crate::semantic_profile::SemanticProfile;
Structs§
- Annotation
Fact - An independently identified schema annotation fact.
- Annotation
Fact Id - Identity of an independent annotation fact.
- Canonical
Value Range - An exact-domain, non-empty canonical value range.
- Canonical
Value Set - A non-empty exact-domain canonical value set.
- Declared
Identity Fingerprint - A domain-safe fingerprint of direct fact identity and meaning.
- Declared
Schema - A validated normalized graph of direct schema facts.
- Diagnostic
Label - A secondary source label attached to a schema diagnostic.
- DocText
- A validated non-empty documentation payload.
- Document
Fingerprint - A domain-safe source-document fingerprint.
- Document
Id - A normalized, relative, forward-slash schema source identifier.
- Function
Body - Decoded provider-native function body text retained verbatim.
- Function
Fact - A function declaration with structured signature and decoded body text.
- Function
Parameter - One ordered function parameter.
- Function
Return Element - One ordered element in a function return signature.
- Function
Signature - A validated ordered function signature.
- Owns
Fact - A direct ownership fact.
- Owns
Fact Id - Identity of a direct ownership declaration.
- Plays
Fact - A direct role-playing fact.
- Plays
Fact Id - Identity of a direct role-playing declaration.
- Regex
Pattern - A validated regular-expression payload retained without a regex engine.
- Relates
Fact - A direct related-role fact, optionally specializing a parent role.
- Relates
Fact Id - Identity of a direct related-role declaration.
- Schema
Diagnostic - A stable contract diagnostic enriched with schema source locations.
- Schema
Diagnostics - One or more schema diagnostics produced by a fail-closed operation.
- Source
Span - A byte-exact source span with one-based line and column positions.
- Sourced
Schema Fact - A direct fact paired with the one source span that owns it.
- Struct
Fact - A named struct declaration with ordered, non-empty built-in fields.
- Struct
Field - One ordered field in a struct declaration.
- SubFact
- A direct subtype fact.
- SubFact
Id - Identity of a direct subtype edge.
- Type
Fact - Existence of an entity, relation, or attribute type.
- Value
Fact - An attribute scalar-domain fact.
- Value
Fact Id - Identity of an attribute value declaration.
Enums§
- Annotation
Kind Id - Stable identity of a schema annotation kind.
- Annotation
Subject Id - A structural fact that may carry an independent annotation.
- Canonical
Value Range Violation - Precise validation failure for canonical range bounds.
- Canonical
Value SetViolation - Precise validation failure for a raw
@valuesmember sequence. - Collection
Mode - The closed collection semantics of an ownership or related-role fact.
- Function
Return Mode - Native function return cardinality and ordered shape.
- Schema
Annotation Value - A closed, kind-safe schema annotation payload.
- Schema
Fact - A validated, atomic direct schema fact.
- Schema
Fact Id - Stable identity of any Phase 2 schema fact.
- Type
Reference - A type reference used by a function signature.
Constants§
- MAX_
DOCUMENT_ ID_ BYTES - Maximum UTF-8 length of a normalized schema document identifier.
Functions§
- decode_
declared_ schema - Decode canonical bytes through private wire DTOs and every fact/schema constructor.
- encode_
declared_ schema - Encode only a constructor-validated declared schema as canonical JSON.