viz-macros 0.2.0

The proc macros for Viz
Documentation

Macros

Macro Description
handler Extended Handler with Extractors

Example

use viz::{IntoResponse, Result, types::{Params}};
use viz_macros::handler;

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

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

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

License

This project is licensed under the MIT license.

Author