Skip to main content

Crate hyle

Crate hyle 

Source
Expand description

Framework-agnostic schema and query planning primitives.

hyle deliberately has no React, DOM, async, or transport concepts. It describes models and fields, derives backend query manifests, and resolves raw backend sources into purified results plus lookup tables. UI frameworks should build thin adapters on top of these serializable structures.

Re-exports§

pub use source::set_provider;
pub use source::load_source;
pub use source::find_item;
pub use source::SourceProvider;
pub use source::load_typed_item;
pub use source::load_typed_rows;
pub use source::FieldStorageType;
pub use source::SourceDef;
pub use source::SourceFieldDef;
pub use source::deser_row;
pub use query::parse_query_params;
pub use query::Manifest;
pub use query::MutateInput;
pub use query::Query;
pub use query::Sort;
pub use raw::is_single;
pub use raw::parse_index_items;
pub use raw::row_from_form;
pub use raw::row_from_value;
pub use raw::ModelResult;
pub use raw::Row;
pub use raw::RowItem;
pub use raw::Source;
pub use raw::Value;
pub use raw::rows_from_outcome;
pub use raw::ModelRows;
pub use view::Column;
pub use view::display_value;
pub use view::display_value_from_outcome;

Modules§

de
query
raw
ser
source
view

Structs§

Blueprint
Field
FieldOptions
Forma
FormaField
InputHint
Model
PurifyError
Reference
ShapeField

Enums§

Error
FieldType
FormaContext
Which rendering context to use when deriving a query from a forma.
FormaFieldType
How a forma field type is described in a runtime forma definition. Strings correspond to primitive names or entity names (for references).
Primitive
SortType

Functions§

forma_to_query
Derive a Query from a Forma definition.
make_field
Build a Field by kind name. Used by the WASM make_field export so the JS field builder helpers can delegate entirely to Rust.

Type Aliases§

HyleResult