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 CapabilityRuleMatchExpressionsInner {
    /// An identifier for a capability that might be imported from a peer domain. If it is, it will bear an imported resource prefix (either a domain identifier or an alias, followed by ::) 
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "operator")]
    pub operator: Operator,
    #[serde(rename = "values")]
    pub values: Vec<String>,
}

impl CapabilityRuleMatchExpressionsInner {
    pub fn new(name: String, operator: Operator, values: Vec<String>) -> CapabilityRuleMatchExpressionsInner {
        CapabilityRuleMatchExpressionsInner {
            name,
            operator,
            values,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Operator {
    #[serde(rename = "In")]
    In,
    #[serde(rename = "NotIn")]
    NotIn,
    #[serde(rename = "Exists")]
    Exists,
    #[serde(rename = "NotExists")]
    NotExists,
}

impl Default for Operator {
    fn default() -> Operator {
        Self::In
    }
}