pub trait ControllerBasePath {
// Required method
fn base_path() -> &'static str;
}Expand description
Metadata implemented by the #[controller("/path")] attribute macro.
It defines the base path where all routes within the controller will live.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.