f3-rs 0.1.0

Rust port of the Friendly Forge Format
Documentation
// 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,
}