pub trait Helper {
// Required method
fn helper_name() -> &'static str;
}Expand description
A controller helper type. The #[helper] attribute generates the implementation
from the struct name (PostsHelper → "posts_helper").
Required Methods§
Sourcefn helper_name() -> &'static str
fn helper_name() -> &'static str
Snake-case helper name used for convention-based lookup.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".