Skip to main content

Crate laterite_core

Crate laterite_core 

Source
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 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::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.
i18n
UI-string localization.
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.
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). The n argument is the count the plural form is chosen from.
tp
A context-disambiguated message (homonyms): tp!("verb", "Open").