gotcha 0.3.0

Enhanced web framework built on top of Axum with OpenAPI, metrics, and configuration management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use gotcha::Schematic;

#[derive(Schematic)]
pub struct ResponseWrapper<T: Schematic> {
    pub code: i32,
    pub message: String,
    pub data: T,
}

#[derive(Schematic)]
pub enum Either<A: Schematic, B: Schematic> {
    Left{left_data: A},
    Right{right_data: B},
}

fn main() {}