Expand description
§RustMVC
A lightweight MVC framework for Rust, built on top of Actix Web and Askama templates. Provides routing, middlewares, request context, and response handling.
Re-exports§
pub use askama;
Modules§
Structs§
- Request
Context - Contains information about an incoming HTTP request.
- Route
- Represents a route in the server
- Server
- The main server struct of RustMVC.
- User
- User context
Enums§
- Action
Result - Represents the possible responses an action can return.
- Http
Method - Http Methods
- Route
Rules - Rules for a route to pass before proceeding to action
Traits§
- Render
Model - Trait implemented by models that can render themselves to HTML.
- Template
- Main
Templatetrait; implementations are generally derived
Type Aliases§
- Action
Fn - Type of an action function (controller handler)
- ArcRender
Model - Shared pointer to a type implementing the
RenderModeltrait. - Middleware
Fn - Type of a middleware function
Derive Macros§
- Template
- The
Templatederive macro and itstemplate()attribute.