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

/// DataPolicyRuleChanges : A set of changes to apply to a data policy 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataPolicyRuleChanges {
    #[serde(rename = "newRules", skip_serializing_if = "Option::is_none")]
    pub new_rules: Option<Vec<models::NewDataPolicyRule>>,
    #[serde(rename = "deleteRules", skip_serializing_if = "Option::is_none")]
    pub delete_rules: Option<Vec<String>>,
}

impl DataPolicyRuleChanges {
    /// A set of changes to apply to a data policy 
    pub fn new() -> DataPolicyRuleChanges {
        DataPolicyRuleChanges {
            new_rules: None,
            delete_rules: None,
        }
    }
}