viz-macros 0.1.0

Viz proc macros
Documentation

Macros

Macro Description
handler Extended Handler with Extractors

Example

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

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

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

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Viz by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.