antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

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

/// NewDomain : Parameters when creating a domain
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewDomain {
    #[serde(rename = "adminEmail")]
    pub admin_email: String,
    /// If supplied, and if the principal claim contains the email address specified as adminEmail, skip email verification. 
    #[serde(rename = "googleJWT", skip_serializing_if = "Option::is_none")]
    pub google_jwt: Option<String>,
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
}

impl NewDomain {
    /// Parameters when creating a domain
    pub fn new(admin_email: String) -> NewDomain {
        NewDomain {
            admin_email,
            google_jwt: None,
            display_name: None,
        }
    }
}