Crate viz_macros

Source
Expand description

Macros for Viz Web Framework

Generators for handler

§handler

§Example


#[handler]
fn about() -> impl IntoResponse {
}

#[handler]
async fn index() -> impl IntoResponse {
    ()
}

#[handler]
async fn get_user() -> Result<impl IntoResponse> {
    Ok(())
}

Attribute Macros§

handler
Transforms extract-handler to a Handler instance.