mayhem_db/util/complete_user.rs
1use serde::{Deserialize, Serialize};
2
3use super::CompleteServer;
4use crate::models::user_settings::Model as UserSettings;
5
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7pub struct CompleteUser {
8 pub id: i32,
9 pub first_name: String,
10 pub last_name: String,
11 pub email: String,
12 pub username: String,
13 pub password: String,
14 pub servers: Vec<CompleteServer>,
15 pub settings: Option<UserSettings>,
16}