web/response.rs
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}