doido-controller 0.0.20

Action Controller + routing + Tower middleware for Doido: handlers, Context, responses, filters, routes! DSL, sessions, and middleware stacks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Controller helpers — auxiliary modules imported by controllers.
//!
//! Helpers live in `app/helpers/` (e.g. `posts_helper.rs` with `PostsHelper`).
//! Mark the struct with `#[helper]` and call its methods from controller actions.

/// A controller helper type. The `#[helper]` attribute generates the implementation
/// from the struct name (`PostsHelper` → `"posts_helper"`).
pub trait Helper {
    /// Snake-case helper name used for convention-based lookup.
    fn helper_name() -> &'static str;
}