Expand description
Laterite core: the application kernel.
The first crate of the Laterite content management framework. Provides what every Laterite application starts from: layered configuration loading, the framework error taxonomy, database connectivity and migrations, module registration, and pagination primitives.
Re-exports§
pub use capabilities::CapabilitySet;pub use db::Db;pub use error::CoreError;pub use error::CoreResult;pub use events::Event;pub use events::EventCx;pub use events::EventError;pub use events::EventListenerReg;pub use events::Events;pub use events::Listener;pub use i18n::collect_sources;pub use i18n::plural_category;pub use i18n::Arg;pub use i18n::CatalogStore;pub use i18n::PluralCategory;pub use i18n::Text;pub use i18n::Translator;pub use i18n::PSEUDO_LOCALE;pub use listeners::Timestamps;pub use migration::bool_col;pub use migration::key_col;pub use migration::DbBackend;pub use migration::Migration;pub use migration::MigrationSet;pub use migration::Schema;pub use migration::SqlMigration;pub use module::BootCx;pub use module::Capability;pub use module::Module;pub use module::ModuleId;pub use module::ModuleRegistry;pub use query::AnyRowExt;pub use record::Actor;pub use record::AttrValue;pub use record::ListenerTarget;pub use record::ModelListener;pub use record::ModelListenerReg;pub use record::Op;pub use record::Record;pub use record::SaveCx;pub use record::SavedCx;pub use registry::ContributeMode;pub use registry::ContributeOpts;pub use registry::Contribution;pub use registry::Registry;pub use validation::validate;pub use validation::validate_fields;pub use validation::ErrorBag;pub use validation::FieldRules;pub use validation::Mode;pub use validation::Rule;
Modules§
- capabilities
- Database capability declarations.
- config
- Layered configuration loading.
- db
- Database connectivity.
- error
- The framework-level error taxonomy.
- events
- Events: facts a module announces, and the listeners that act on them.
- i18n
- UI-string localization.
- icons
- Icons: a curated set, a registry plugins extend, and two ways to render one.
- listeners
- Listeners the framework ships.
- migration
- Portable, reversible migrations.
- module
- Module registration.
- pagination
- Pagination primitives shared by admin lists and API endpoints.
- query
- Portable parameterised queries over
sqlx::Any. - record
- The record layer: a dynamic attribute bag and the lifecycle listeners that shape a write.
- registry
- The extension registry.
- search
- Text folding and matching for lookups.
- strata
strata: the one-import toolkit for migrations and store queries.- theme
- Colour mode: light, dark, or follow the system.
- validation
- One validation engine for admin forms and the API.
Macros§
- migration_
set - Declares a module’s migration set from one-file migrations.
- t
- A translation message:
t!("Save"),t!("Welcome, {name}", name = user.name). - tn
- A pluralized message:
tn!("{n} item", "{n} items", n = count). Thenargument is the count the plural form is chosen from. - tp
- A context-disambiguated message (homonyms):
tp!("verb", "Open").