Skip to main content

Crate apiplant_core

Crate apiplant_core 

Source
Expand description

§apiplant-core

Configuration, error handling, and the declarative resource model that the rest of apiplant is built on. This crate has no async, no database and no HTTP — it only knows how to turn an app directory on disk into typed App data other crates act on.

Re-exports§

pub use app::App;
pub use app::TlsPaths;
pub use config::CacheConfig;
pub use config::Config;
pub use config::EmailConfig;
pub use config::SmtpConfig;
pub use env::expand_document;
pub use env::parse_toml;
pub use error::Error;
pub use error::Result;
pub use schema::relation_name;
pub use schema::Access;
pub use schema::AuthEvent;
pub use schema::Field;
pub use schema::FieldType;
pub use schema::HookEvent;
pub use schema::Hooks;
pub use schema::OnDelete;
pub use schema::Permissions;
pub use schema::Reference;
pub use schema::Resource;
pub use schema::Scope;

Modules§

app
The loaded application: an app directory turned into config + resources.
config
main.toml — the top-level server configuration.
defaults
Built-in resources.
env
Environment-variable references in an app’s TOML files.
error
Error type shared across apiplant crates.
schema
The declarative resource model.