Expand description
One function per name, so the generator and the checks cannot disagree.
Structs§
Enums§
- Path
Parameter - What a route builder takes for a path parameter: what a handler can read from it.
- Wiring
Side - Which generated file names a module’s wired item: its own
src/wiring.rs, so the item may stay private to the crate, or the app’s.
Constants§
- BILLING_
PACKAGE - CONTENT_
PACKAGE - DEFAULT_
BEHAVIORS - IDENTITY_
AREA - IDENTITY_
PACKAGE - QUERY_
MODULE - SOURCE_
LANGUAGE - The language the app’s names are written in: labels and enum variants are those names humanized, so it needs no file.
- TASK_
RUNNERS - The
sofiefunctions an app’smainhands its tasks to. - TENANCY_
PACKAGE - WEB_
AREA
Functions§
- behavior_
columns - Must match sofie-db’s
Behavior::columns. - bound_
aggregate - Must match sofie-db’s
bind, which loads the aggregate named like the segment. - contract_
package - crate_
name - file_
stem - handler_
module - A GET never changes state and an action is never a GET, so each lives in its own module.
- job_
name - key_
constant orders.countisORDERS_COUNTin a contract’skeys.- pascal_
case weekly_newsasWeeklyNews.- path_
parameters - relative_
path - Joined with
/, as Rust paths inconcat!need on every platform. - route_
parameters Nonefor a parameter no handler can read.- screen_
key - snake_
case - Must match how
#[derive(Aggregate)]names a table. - stored_
columns - Must match each value’s
Cast::COLUMNS.Nonefor a type stored another way: anOption, an enum, a value of the app’s own. - stored_
name - Must match how
#[derive(Enum)]stores a variant. - task_
name - unraw
- A name is the identifier as read, so
r#matchis namedmatch.