Skip to main content

Module model

Module model 

Source
Expand description

Model trait and repository over the store.

Structs§

Action
A bulk row action with a name, title, and handler.
Check
A named checkbox constraint.
Field
Spec for one column of a schema.
Filter
A leaf condition on one field.
Name
A column name.
Page
Paging window; count 0 means no limit.
Pick
A fixed set of (value, label) choices for a field.
Query
A full read: condition, sort, page, columns, optional aggregate.
Repository
Full CRUD access to one model over a store; usable as an axum extractor.
Schema
A table definition: name, fields, and rules.
Sort
A sort on one field.
Table
A table name.

Enums§

Key
A row key: autoincrement id or text key.
Link
Reference between tables.
Mass
Aggregate over matching rows.
Only
Which columns a query returns.
Op
Comparison operator for a Filter.
Order
Sort direction.
Rule
Repository-level constraint attached to a Schema.
Tree
Nested query condition.

Traits§

Model
A domain type mapped to a store table.

Functions§

id_column
Name of the model’s key column.
key
Key value parsed from a raw string using the model’s schema.
related
Rows linked to this model through a many-to-many via field.

Type Aliases§

Run
Action handler: store, schema, and target keys to a result message.