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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AvailableDelegatedRootEncryptionKeyProvider {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "shortName")]
    pub short_name: String,
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "accountDetails")]
    pub account_details: String,
}

impl AvailableDelegatedRootEncryptionKeyProvider {
    pub fn new(name: String, short_name: String, description: String, account_details: String) -> AvailableDelegatedRootEncryptionKeyProvider {
        AvailableDelegatedRootEncryptionKeyProvider {
            r#type: None,
            name,
            short_name,
            description,
            account_details,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "DelegatedRootEncryptionKeyProvider")]
    DelegatedRootEncryptionKeyProvider,
}

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