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

/// DomainIdentityApiKeyPrincipalParams : Details for an API key principal
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainIdentityApiKeyPrincipalParams {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    #[serde(rename = "apiKeyID", skip_serializing_if = "Option::is_none")]
    pub api_key_id: Option<String>,
    /// An optional comment for the API key principal
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
}

impl DomainIdentityApiKeyPrincipalParams {
    /// Details for an API key principal
    pub fn new() -> DomainIdentityApiKeyPrincipalParams {
        DomainIdentityApiKeyPrincipalParams {
            r#type: None,
            api_key_id: None,
            comment: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "APIKey")]
    ApiKey,
}

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