Expand description
Engine, resource traits and the database context for Ignite.
A resource describes one table the admin panel manages: its form
fields, its list columns, and the queries that list, find, create,
update and delete its rows. The ignite-panel crate turns a set of
resources into Rocket routes.
Re-exports§
pub use field::Column;pub use field::Field;pub use field::FieldKind;pub use form::FieldErrors;pub use form::FormInput;pub use password::hash_password;pub use password::verify_password;pub use query::escape_like;pub use query::Direction;pub use query::ListQuery;pub use query::Page;pub use resource::table_name_is;pub use resource::IgniteResource;pub use runtime_resource::register_runtime;pub use runtime_resource::reserve_slugs;pub use runtime_resource::runtime_resource;pub use runtime_resource::runtime_resources;pub use runtime_resource::unregister_runtime;pub use runtime_resource::ColumnDef;pub use runtime_resource::FieldDef;pub use runtime_resource::FieldKindDef;pub use runtime_resource::RegisteredResource;pub use runtime_resource::Row;pub use runtime_resource::RuntimeData;pub use runtime_resource::RuntimeError;pub use runtime_resource::RuntimeFuture;pub use runtime_resource::RuntimeResource;pub use runtime_resource::MAX_FIELD_NAME;pub use widget::LatestRecords;pub use widget::StatWidget;
Modules§
- field
- Form fields and table columns, as the panel renders them.
- form
- Submitted form values and the per-field error messages.
- password
- Argon2 password hashes. The panel’s sign-in and the derived password fields both use these functions, so every stored password has the same format.
- query
- What the list view asks for: the page, the search text and the sort.
- resource
- The trait a table implements to be managed by the admin panel.
- runtime_
resource - Resources defined at run time, from data: their slug, fields, columns and queries are values, not a Rust type, so an app can add and remove them while the panel serves.
- widget
- Dashboard widgets: the stat cards and the latest-records tables a resource can show on the dashboard.
Structs§
- Database
- The connection pool for one database. Clone-free: share it behind an
Arcor in Rocket’s state.
Derive Macros§
- Ignite
Resource - Derives
IgniteResourcefor an Orbit model. Seeignite_macrosfor the attributes. Writesimpl ignite_core::IgniteResourcefor a struct that models a table.