/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddUserRequest {
    #[serde(rename = "email")]
    pub email: String,
    #[serde(rename = "is_admin")]
    pub is_admin: bool,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "operator")]
    pub operator: bool,
}

impl AddUserRequest {
    pub fn new(email: String, is_admin: bool, operator: bool) -> AddUserRequest {
        AddUserRequest {
            email,
            is_admin,
            username: None,
            operator,
        }
    }
}

