A convenience library for working with multipart/form-data in actix-web
3.x.
This library uses actix-multipart
internally, and is not a replacement
for actix-multipart
.
This crate supports actix-web
of versions 3.x only.
toml
awmpde = "0.2.0"
```rust use actix_web::{web, App, post, Error, HttpResponse, HttpServer}; use serde::Deserialize;
struct Description { genre: String, author: String, year: i64, }
struct Book {
file: awmpde::File
async fn putbook(book: awmpde::Multipart
async fn main() -> Result<(), std::io::Error> { actixweb::HttpServer::new(move || { actixweb::App::new() .route(put_book) }) .bind("0.0.0.0:3000")? .run() .await } ```
Current version: 0.2.0
License: MIT