Skip to main content

Module __codegen

Module __codegen 

Source
Expand description

Generated-code SPI for TypeBridge.

Internal primitives and traits required by generated schema crates. Hand-written trait implementations are not schema evidence.

Re-exports§

pub use crate::schema::Schema;
pub use crate::schema::SchemaPackage;
pub use crate::schema::Unbound;

Structs§

CanonicalDouble
A finite, normalized floating-point value stored as IEEE 754 bits.
Cardinality
An exact resolved cardinality.
Date
DateTime
DateTimeTz
Decimal
Duration
FieldToken
An owned-field token branded by owner and value model.
FunctionToken
A typed schema-function token branded by schema S.
Optional
An optional scalar value.
PlaysToken
A playing-fact token branded by player, role owner, and accepted-player enum.
Required
A statically required scalar value.
RoleToken
A related-role token branded by owner and exact accepted-player enum.
Sequence
A sequence checked against its exact resolved cardinality.
Stream
A typed asynchronous stream result marker.
TypeToken
A schema type/query token branded by its exact owner.
ValidationError
A stable generated-input validation failure.
ValidationPath
An owned, nestable validation path.

Enums§

Either
A binary sum used to preserve exact heterogeneous model forms.
Never
The uninhabited projection of an empty accepted-player set.
ThingKind
Target thing category: Entity or Relation.

Traits§

AbstractModel
An abstract generated model marker.
CompleteModel
A complete materialized generated model with a mandatory canonical IID.
EntityModel
An entity schema model.
Model
A sealed generated schema model associated with its schema marker S.
ModelFamily
A closed subtype family enum representing a concrete descendant closure for a root Root.
NominalUpcast
A resolver-proven nominal upcast relation.
NumericValued
Marker for generated attribute values whose canonical domain admits numeric reduction, carrying the canonical reduced scalar domain.
OrderedValued
Marker for generated attribute values whose canonical domain admits canonical ordering for range comparisons.
ReferenceModel
A nonrecursive generated reference model. Key-based references may not have an IID initially.
RelationModel
A relation schema model.
RolePlayer
Positive generated evidence that a role’s exact player union admits one bound player model.
RoleTokenCompatible
Positive generated evidence that one role token is active on a relation.
RoleUpcast
A resolver-proven specialized-role upcast relation.
StructValue
A sealed generated struct value associated with its schema marker S.
TextValued
Marker for generated attribute values whose canonical domain is text.
ThingModel
An entity or relation schema model.

Functions§

prefix_validation_path
validate_canonical_string