cortex_client/models/
base_config.rs

1/*
2 * Cortex API
3 *
4 * API for Cortex, a powerful observable analysis and active response engine.
5 *
6 * The version of the OpenAPI document: 3.1.8
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BaseConfig {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "workers", skip_serializing_if = "Option::is_none")]
19    pub workers: Option<Vec<String>>,
20    #[serde(rename = "configurationItems", skip_serializing_if = "Option::is_none")]
21    pub configuration_items: Option<Vec<models::ConfigurationDefinitionItem>>,
22    /// Arbitrary JSON object representing a worker's specific configuration.
23    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
24    pub config: Option<std::collections::HashMap<String, serde_json::Value>>,
25}
26
27impl BaseConfig {
28    pub fn new() -> BaseConfig {
29        BaseConfig {
30            name: None,
31            workers: None,
32            configuration_items: None,
33            config: None,
34        }
35    }
36}
37