vidi-macros 0.1.0

The proc macros for Vidi
Documentation

Macros

Macro Description
handler Extended Handler with Extractors

Example

use vidi::{IntoResponse, Result, types::{Params}};
use vidi_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