Expand description
Resource — maps one Toasty Model to its admin UI.
Structs§
- Committed
- What one committed mutation wrote.
- Relation
- One relation of a parent resource’s records.
- Resource
Def - What a
Resourcedeclares: its names, navigation, policy, tenancy, table, form, view, relations and actions.
Enums§
- Mutation
- The kind of mutation a record fn performed.
Traits§
- Action
- A mutation beyond create, update and delete: “publish”, “archive”, “resend the invite”.
- Foreign
Key - A foreign-key column type referencing a primary key of type
K:Kitself, orOption<K>for an optional reference. Sealed: these are the only two. - Resource
- Maps one Toasty
Modelto its admin UI.
Functions§
- can
- Whether
R’s policy, as the request’s panel mounted it, allowsability;falsewhen the panel does not mountR, andR’s owndeclareanswers for a context with no panel at all. Does not check sign-in or tenant scope. - scoped_
query - The tenant-scoped base query.
- scoped_
view_ query Resource::view_queryunder the same tenant gate and filter asscoped_query: the detail page’s loader, and the entry point for a page that owns its own detail view.- write_
create - The derived create: the form’s builder, the request tenant stamped on the
resource’s
Tenancy::column, executed throughex. - write_
update - The derived update: assign every named field and execute through
ex.