Expand description
Schema types shared by the compiler and the core engine.
Modules§
- ref_
- Borrowed schema references for no-alloc runtime.
Structs§
- EnumDef
- An enum declaration; the wire value is the variant index.
- Field
Schema - One field of a message, in wire order.
- Message
Schema - One message type in a schema set.
- Parsed
Schema - A parsed schema set with its non-fatal warnings.
- Predictor
Spec - Predictor configuration declared inline on a field.
- Schema
Set - All messages that share one wire contract.
- Storage
Layout - Storage layout for no-alloc engine.
- Sync
Defaults - Message-level recovery defaults.
- Tolerance
Spec - Tolerance bounds on the delivered value of a numeric field.
- Warning
- A non-fatal schema warning.
Enums§
- Field
Type - The wire type of a field.
- Predictor
Kind - Predictor kinds supported by the schema.
- Predictor
Param Value - A numeric parameter value for a custom predictor.
- Scalar
Type - A v1 scalar type, including enum references and list element types.
- Schema
Error - Every schema grammar or validation failure.
- Storage
Error - Why a schema cannot be sized into fixed storage.
- Tolerance
Mode - How absolute and relative bounds combine when both are present.
- Warning
Kind - Categories of schema warning.
Constants§
- MAX_
ENUM_ VARIANTS - Maximum number of variants in one enum.
- MAX_
FIELDS - Maximum number of fields in one message.
- MAX_LEN
- Maximum string or list length.
- MAX_
MESSAGES - Maximum number of messages in one schema set.
- MAX_
WINDOW - Maximum predictor window.
Functions§
- is_
identifier - Whether a name matches
[A-Za-z_][A-Za-z0-9_]*. - schema_
smoke_ value - Returns a fixed value used by the M0 scaffolding smoke test.
- try_
storage_ layout - Compute the fixed storage needed by one message from a borrowed schema.