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 DisasterRecoverySettings {
    /// Add a Disaster Recovery header to all encrypted capsules. If set to true, a DR public key must be set. 
    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
    pub enable: Option<bool>,
    /// An Antimatter Disaster Recovery public key to use if enable is true 
    #[serde(rename = "publicKey", skip_serializing_if = "Option::is_none")]
    pub public_key: Option<String>,
}

impl DisasterRecoverySettings {
    pub fn new() -> DisasterRecoverySettings {
        DisasterRecoverySettings {
            enable: None,
            public_key: None,
        }
    }
}