axum-bson

Crates.ioaxum-bson
lib.rsaxum-bson
version0.1.1
sourcesrc
created_at2024-02-23 10:26:25.352071
updated_at2024-02-26 15:16:46.986979
descriptionaxum bson extractor and response
homepage
repositoryhttps://github.com/serp256/axum_bson.git
max_upload_size
id1150442
size6,310
Sergey Plaksin (serp256)

documentation

README


#[derive(Deserialize)]
struct MyRequest {
...
}

#[derive(Serialize)]
struct MyResponse {
...
}

async fn my_handler(axum_bson::Bson(request): axum_bson::Bson<MyRequest>) -> axum_bson::Bson<MyResponse> {
    ...
    MyResponse {...}
}
Commit count: 0

cargo fmt