thehive_client/models/
output_sharing_profile.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 OutputSharingProfile {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "description")]
19    pub description: String,
20    #[serde(rename = "autoShare")]
21    pub auto_share: bool,
22    #[serde(rename = "editable")]
23    pub editable: bool,
24    #[serde(rename = "permissionProfile")]
25    pub permission_profile: String,
26    #[serde(rename = "taskRule")]
27    pub task_rule: String,
28    #[serde(rename = "observableRule")]
29    pub observable_rule: String,
30}
31
32impl OutputSharingProfile {
33    pub fn new(name: String, description: String, auto_share: bool, editable: bool, permission_profile: String, task_rule: String, observable_rule: String) -> OutputSharingProfile {
34        OutputSharingProfile {
35            name,
36            description,
37            auto_share,
38            editable,
39            permission_profile,
40            task_rule,
41            observable_rule,
42        }
43    }
44}
45