macro_rules! present { ($data:pat, $(move |$($move:ident:$ty:ty ),+|)? $code:block) => { ... }; }
Expand description
Construct a Present
extension like you write closures.
See crate::prepare!
for usage and useful examples.
See super::PresentCall
for a list of arguments.
ยงExamples
let extension = present!(data, {
println!("Calling uri {}", data.request.uri());
});