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

/// KeyInfos : Holds the required service account information for varying providers. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct KeyInfos {
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "keyInformation")]
    pub key_information: Box<models::KeyInfosKeyInformation>,
}

impl KeyInfos {
    /// Holds the required service account information for varying providers. 
    pub fn new(key_information: models::KeyInfosKeyInformation) -> KeyInfos {
        KeyInfos {
            description: None,
            key_information: Box::new(key_information),
        }
    }
}