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 DomainResourceSummarySchemaInner {
    /// The resource path. May contain {placeholder} entries
    #[serde(rename = "resource")]
    pub resource: String,
    #[serde(rename = "operations")]
    pub operations: Vec<Operations>,
    /// mapping from placeholder name to list of values
    #[serde(rename = "placeholderValues")]
    pub placeholder_values: std::collections::HashMap<String, Vec<String>>,
    /// a user-friendly description of this resource
    #[serde(rename = "description")]
    pub description: String,
}

impl DomainResourceSummarySchemaInner {
    pub fn new(resource: String, operations: Vec<Operations>, placeholder_values: std::collections::HashMap<String, Vec<String>>, description: String) -> DomainResourceSummarySchemaInner {
        DomainResourceSummarySchemaInner {
            resource,
            operations,
            placeholder_values,
            description,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Operations {
    #[serde(rename = "edit")]
    Edit,
    #[serde(rename = "view")]
    View,
    #[serde(rename = "use")]
    Use,
}

impl Default for Operations {
    fn default() -> Operations {
        Self::Edit
    }
}