Skip to main content

Crate predsync_schema

Crate predsync_schema 

Source
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.
FieldSchema
One field of a message, in wire order.
MessageSchema
One message type in a schema set.
ParsedSchema
A parsed schema set with its non-fatal warnings.
PredictorSpec
Predictor configuration declared inline on a field.
SchemaSet
All messages that share one wire contract.
StorageLayout
Storage layout for no-alloc engine.
SyncDefaults
Message-level recovery defaults.
ToleranceSpec
Tolerance bounds on the delivered value of a numeric field.
Warning
A non-fatal schema warning.

Enums§

FieldType
The wire type of a field.
PredictorKind
Predictor kinds supported by the schema.
PredictorParamValue
A numeric parameter value for a custom predictor.
ScalarType
A v1 scalar type, including enum references and list element types.
SchemaError
Every schema grammar or validation failure.
StorageError
Why a schema cannot be sized into fixed storage.
ToleranceMode
How absolute and relative bounds combine when both are present.
WarningKind
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.