Macro impl_web

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

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
        }
    }
}