Crates.io | axum-bson |
lib.rs | axum-bson |
version | 0.1.1 |
source | src |
created_at | 2024-02-23 10:26:25.352071 |
updated_at | 2024-02-26 15:16:46.986979 |
description | axum bson extractor and response |
homepage | |
repository | https://github.com/serp256/axum_bson.git |
max_upload_size | |
id | 1150442 |
size | 6,310 |
#[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 {...}
}