Crate rustmvc

Crate rustmvc 

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

authentication

Structs§

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

ActionResult
Represents the possible responses an action can return.
HttpMethod
Http Methods
RouteRules
Rules for a route to pass before proceeding to action

Traits§

RenderModel
Trait implemented by models that can render themselves to HTML.
Template
Main Template trait; implementations are generally derived

Type Aliases§

ActionFn
Type of an action function (controller handler)
ArcRenderModel
Shared pointer to a type implementing the RenderModel trait.
MiddlewareFn
Type of a middleware function

Derive Macros§

Template
The Template derive macro and its template() attribute.