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

/// ExtendedDataPolicy : Information about a data policy, including its rules 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExtendedDataPolicy {
    #[serde(rename = "policy")]
    pub policy: Box<models::DataPolicy>,
    #[serde(rename = "rules", skip_serializing_if = "Option::is_none")]
    pub rules: Option<Vec<models::DataPolicyRule>>,
}

impl ExtendedDataPolicy {
    /// Information about a data policy, including its rules 
    pub fn new(policy: models::DataPolicy) -> ExtendedDataPolicy {
        ExtendedDataPolicy {
            policy: Box::new(policy),
            rules: None,
        }
    }
}