thehive_client/models/
output_responder.rs

1/*
2 * TheHive API
3 *
4 * Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities. 
5 *
6 * The version of the OpenAPI document: 2.1.0
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 OutputResponder {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "version")]
21    pub version: String,
22    #[serde(rename = "description")]
23    pub description: String,
24    #[serde(rename = "dataTypeList", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub data_type_list: Option<Option<Vec<String>>>,
26    #[serde(rename = "cortexIds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub cortex_ids: Option<Option<Vec<String>>>,
28}
29
30impl OutputResponder {
31    pub fn new(id: String, name: String, version: String, description: String) -> OutputResponder {
32        OutputResponder {
33            id,
34            name,
35            version,
36            description,
37            data_type_list: None,
38            cortex_ids: None,
39        }
40    }
41}
42