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};

/// DomainIdentityHostedDomainPrincipalParams : Additional details for a hosted domain principal
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainIdentityHostedDomainPrincipalParams {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    #[serde(rename = "hostedDomain")]
    pub hosted_domain: String,
    /// An optional comment for the hosted domain principal
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
}

impl DomainIdentityHostedDomainPrincipalParams {
    /// Additional details for a hosted domain principal
    pub fn new(hosted_domain: String) -> DomainIdentityHostedDomainPrincipalParams {
        DomainIdentityHostedDomainPrincipalParams {
            r#type: None,
            hosted_domain,
            comment: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "HostedDomain")]
    HostedDomain,
}

impl Default for Type {
    fn default() -> Type {
        Self::HostedDomain
    }
}