thehive_client/models/
input_import_case.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 InputImportCase {
16    #[serde(rename = "password")]
17    pub password: String,
18    #[serde(rename = "sharingParameters", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub sharing_parameters: Option<Option<Vec<models::InputShare>>>,
20    #[serde(rename = "taskRule", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub task_rule: Option<Option<String>>,
22    #[serde(rename = "observableRule", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub observable_rule: Option<Option<String>>,
24}
25
26impl InputImportCase {
27    pub fn new(password: String) -> InputImportCase {
28        InputImportCase {
29            password,
30            sharing_parameters: None,
31            task_rule: None,
32            observable_rule: None,
33        }
34    }
35}
36