ayun-server 0.23.0

The RUST Framework for Web Rustceans.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait MiddlewareTrait {
    fn name() -> String {
        std::any::type_name::<Self>()
            .split("::")
            .last()
            .expect("Cannot get type name")
            .to_string()
    }

    fn handle() -> crate::Middleware;
}