[−][src]Attribute Macro reign::prelude::action
#[action]
Helper for defining a reign_router handler.
Examples
ⓘThis example is not tested
use anyhow::Error; use reign::{ prelude::*, router::{Request, Response} }; #[action] async fn name(req: &mut Request, id: String) -> Result<impl Response, Error> { Ok(id) }