[][src]Macro tower_web::impl_web

macro_rules! impl_web {
    ($($t:tt)*) => { ... };
}

Generate a Resource implementation based on the methods defined in the macro block.

See library level documentation for more details.

Examples

struct MyApp;

impl_web! {
    impl MyApp {
        #[get("/")]
        fn index(&self) -> Result<String, ()> {
            // implementation
        }
    }
}