Skip to main content

Module schema

Module schema 

Source
Expand description

Collection identity, field paths, logical Type values, and the DbModel marker trait.

Re-exports§

pub use crate::schema_compat::classify_schema_update;

Structs§

CollectionId
Stable numeric id for a registered collection (assigned at create time, starting at 1).
CollectionSchema
High-level description of a collection (name, version, fields); used by tooling and derives.
FieldDef
One field’s path, type, and optional constraints within a collection schema.
FieldPath
Dot-style path segments for a field (v1 rows use single-segment top-level names only).
IndexDef
Secondary index definition for one collection schema.
SchemaVersion
Monotonic schema version for one collection (starts at 1 on create; bumps on each new version).

Enums§

Constraint
Declarative constraint on a field (0.6+). Evaluated on insert after type checks.
IndexKind
Kind of secondary index.
SchemaChange
Compatibility classification for a proposed schema update.
Type
Logical type of a field in the catalog (mirrors encoding in record payloads where supported).

Traits§

DbModel
Marker trait for Rust types that map to ModelVault collection records.