27 lines
659 B
Rust
27 lines
659 B
Rust
// 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,
|
|
}
|