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

/// WriteContextConfigInfo : Information about write context config rules
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WriteContextConfigInfo {
    /// Number of seconds for which the client may reuse a given encryption key for sealing multiple capsules 
    #[serde(rename = "keyReuseTTL", skip_serializing_if = "Option::is_none")]
    pub key_reuse_ttl: Option<i32>,
    #[serde(rename = "defaultCapsuleTags", skip_serializing_if = "Option::is_none")]
    pub default_capsule_tags: Option<Vec<models::WriteContextClassifierTag>>,
    #[serde(rename = "requiredHooks")]
    pub required_hooks: Vec<models::WriteContextConfigInfoRequiredHooksInner>,
}

impl WriteContextConfigInfo {
    /// Information about write context config rules
    pub fn new(required_hooks: Vec<models::WriteContextConfigInfoRequiredHooksInner>) -> WriteContextConfigInfo {
        WriteContextConfigInfo {
            key_reuse_ttl: None,
            default_capsule_tags: None,
            required_hooks,
        }
    }
}