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