/*
 * 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 InviteUserRequest {
    #[serde(rename = "email")]
    pub email: String,
    #[serde(rename = "is_admin")]
    pub is_admin: bool,
    #[serde(rename = "operator")]
    pub operator: bool,
    #[serde(rename = "parent_workspace_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub parent_workspace_id: Option<Option<String>>,
}

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

