Trait IController

Source
pub trait IController {
    // Required methods
    fn prefix(&self) -> String;
    fn routes(&self) -> Vec<Box<dyn IRoute + Send + 'static>>;
    fn middlewares(&self) -> Vec<MiddlewareFunction> ;
}
Expand description

Controller interface

Required Methods§

Source

fn prefix(&self) -> String

Source

fn routes(&self) -> Vec<Box<dyn IRoute + Send + 'static>>

Source

fn middlewares(&self) -> Vec<MiddlewareFunction>

Implementors§