Expand description
Route definitions, application builder and request dispatch.
The types in the first half of this module are the contract between the
build-time code generator and the runtime. Application code normally never
constructs them by hand: next_rust::routes!() expands to generated code
that does.
Structs§
- Action
Def - ApiDef
- App
- A configured application. Cheap to clone.
- AppBuilder
- Builder returned by
App::new. - Error
Info - Information passed to
error.rs/global-error.rs. - PageDef
- Routes
- Everything discovered in the app directory.
- Segment
Def - Files attached to one route segment (directory).
- SlotDef
Enums§
- Page
Body - Rendering
- Rendering mode declared by a page:
pub const RENDERING: Rendering = Rendering::Dynamic;
Functions§
- discover_
config - Find the configuration.
- parse_
pattern - Convert
/users/:id,/files/*pathor/users/[id]into a pattern.