1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00
This commit is contained in:
Roman Frołow
2020-01-12 16:25:52 +01:00
committed by Yuki Okushi
parent 5493df64e1
commit ebdcdf8130
5 changed files with 1 additions and 8 deletions

View File

@ -12,8 +12,6 @@
// - POSTing json body
// 3. chaining futures into a single response used by an async endpoint
#[macro_use]
extern crate validator_derive;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
@ -27,6 +25,7 @@ use actix_web::{
};
use futures::StreamExt;
use validator::Validate;
use validator_derive::Validate;
#[derive(Debug, Validate, Deserialize, Serialize)]
struct SomeData {