Skip to main content

Module app

Module app 

Source
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§

ActionDef
ApiDef
App
A configured application. Cheap to clone.
AppBuilder
Builder returned by App::new.
ErrorInfo
Information passed to error.rs / global-error.rs.
PageDef
Routes
Everything discovered in the app directory.
SegmentDef
Files attached to one route segment (directory).
SlotDef

Enums§

PageBody
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/*path or /users/[id] into a pattern.

Type Aliases§

ErrorFn
HandlerFn
LayoutFn
LoadingFn
MetadataFn
MiddlewareFn
ParamsFn
RenderFn
RobotsFn
SitemapFn