Macro tower_web::impl_web [−][src]
macro_rules! impl_web { ($($t:tt)*) => { ... }; }
Generate a Resource implemeentation 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 } } }