1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (C) 2023  Aravinth Manivannan <realaravinth@batsense.net>
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: MIT

//! A forge user
use serde::{Deserialize, Serialize};

/// A forge user
#[derive(Clone, Debug, Serialize, Deserialize, Default, Eq, PartialEq)]
pub struct User {
    /// Unique identifier of the user
    pub index: usize,

    /// User readable name of the user
    pub name: String,

    /// Unique name readable name of the user
    pub username: String,

    /// Mail of the user
    pub email: Option<String>,

    /// Password of the user
    pub password: String,
}