Update lib.rs example
This commit is contained in:
parent
a2e1ffa091
commit
9195d5623c
|
@ -28,18 +28,17 @@
|
|||
//! use actix_form_data::{Error, Field, Form, FormData, Multipart, Value};
|
||||
//! use actix_web::{
|
||||
//! web::{post, resource},
|
||||
//! App, HttpResponse, HttpServer,
|
||||
//! App, HttpRequest, HttpResponse, HttpServer,
|
||||
//! };
|
||||
//! use futures_util::stream::StreamExt;
|
||||
//!
|
||||
//! struct UploadedContent(Value<()>);
|
||||
//!
|
||||
//! impl FormData for UploadedContent {
|
||||
//! type Config = ();
|
||||
//! type Item = ();
|
||||
//! type Error = Error;
|
||||
//!
|
||||
//! fn form(_: Option<&()>) -> Form<Self::Item, Self::Error> {
|
||||
//! fn form(_: &HttpRequest) -> Form<Self::Item, Self::Error> {
|
||||
//! Form::new()
|
||||
//! .field("Hey", Field::text())
|
||||
//! .field(
|
||||
|
|
Loading…
Reference in a new issue