cortex_client/models/
worker_configuration.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum WorkerConfiguration {
17    /// Raw JSON string of the worker's specific configuration.
18    String(String),
19    /// Parsed JSON object of the worker's specific configuration (typically for admin views).
20    Object(std::collections::HashMap<String, serde_json::Value>),
21}
22
23impl Default for WorkerConfiguration {
24    fn default() -> Self {
25        Self::String(Default::default())
26    }
27}
28