cortex_client/models/
responder_create_request.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 ResponderCreateRequest {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    /// Arbitrary JSON object representing a worker's specific configuration.
19    #[serde(rename = "configuration", skip_serializing_if = "Option::is_none")]
20    pub configuration: Option<std::collections::HashMap<String, serde_json::Value>>,
21    #[serde(rename = "dataTypeList", skip_serializing_if = "Option::is_none")]
22    pub data_type_list: Option<Vec<String>>,
23}
24
25impl ResponderCreateRequest {
26    pub fn new() -> ResponderCreateRequest {
27        ResponderCreateRequest {
28            name: None,
29            configuration: None,
30            data_type_list: None,
31        }
32    }
33}
34