Added user dtos

This commit is contained in:
franklinblanco 2022-08-14 14:39:58 -04:00
parent 58d8516764
commit cda54f0005
3 changed files with 24 additions and 1 deletions

View File

@ -1,2 +1,3 @@
pub mod shared; pub mod shared;
pub mod sample; pub mod sample;
pub mod user;

1
src/dtos/user/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod user_dtos;

View File

@ -0,0 +1,21 @@
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct UserForCreationDto{
pub app: String,
pub email: String,
pub password: String,
pub name: String
}
#[derive(Serialize, Deserialize, Debug)]
pub struct UserForLoginDto{
pub app: String,
pub email: String,
pub password: String
}
#[derive(Serialize, Deserialize, Debug)]
pub struct UserForAuthenticationDto{
pub app: String,
pub email: String,
pub token: String
}