1use chrono::prelude::*;
2use serde::Serialize;
3
4#[allow(non_snake_case)]
5#[derive(Debug, Serialize)]
6pub struct FilteredUser {
7 pub id: String,
8 pub name: String,
9 pub email: String,
10 pub role: String,
11 pub photo: String,
12 pub verified: bool,
13 pub createdAt: DateTime<Utc>,
14 pub updatedAt: DateTime<Utc>,
15}
16
17#[derive(Serialize, Debug)]
18pub struct UserData {
19 pub user: FilteredUser,
20}
21
22#[derive(Serialize, Debug)]
23pub struct UserResponse {
24 pub status: String,
25 pub data: UserData,
26}