modelvault-core 0.15.2

Core engine for ModelVault — application-focused embedded storage with model schemas, validation, and migrations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Persisted schema catalog: binary codec payloads and [`Catalog`] state.

mod codec;
mod state;

pub use codec::{
    decode_catalog_payload, encode_catalog_payload, CatalogDecodeError, CatalogRecordWire,
    CATALOG_PAYLOAD_VERSION, CATALOG_PAYLOAD_VERSION_V1, CATALOG_PAYLOAD_VERSION_V4,
    ENTRY_KIND_CREATE_COLLECTION, ENTRY_KIND_NEW_SCHEMA_VERSION, MAX_COLLECTION_NAME_BYTES,
    MAX_FIELDS_PER_SCHEMA, MAX_TYPE_NESTING_DEPTH,
};
pub use state::{Catalog, CollectionInfo};

/// Alias for encoded catalog records on the wire.
pub type CatalogRecord = CatalogRecordWire;