thehive_client/models/
input_analyzer_job.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 InputAnalyzerJob {
16    #[serde(rename = "analyzerId")]
17    pub analyzer_id: String,
18    #[serde(rename = "cortexId")]
19    pub cortex_id: String,
20    #[serde(rename = "artifactId")]
21    pub artifact_id: String,
22    #[serde(rename = "parameters", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub parameters: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
24}
25
26impl InputAnalyzerJob {
27    pub fn new(analyzer_id: String, cortex_id: String, artifact_id: String) -> InputAnalyzerJob {
28        InputAnalyzerJob {
29            analyzer_id,
30            cortex_id,
31            artifact_id,
32            parameters: None,
33        }
34    }
35}
36