thehive_client/models/
input_responder_action.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 InputResponderAction {
16    #[serde(rename = "objectId")]
17    pub object_id: String,
18    #[serde(rename = "objectType")]
19    pub object_type: String,
20    #[serde(rename = "responderId")]
21    pub responder_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    #[serde(rename = "tlp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub tlp: Option<Option<i32>>,
26}
27
28impl InputResponderAction {
29    pub fn new(object_id: String, object_type: String, responder_id: String) -> InputResponderAction {
30        InputResponderAction {
31            object_id,
32            object_type,
33            responder_id,
34            parameters: None,
35            tlp: None,
36        }
37    }
38}
39