thehive_client/models/
input_update_custom_field.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 InputUpdateCustomField {
16    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
17    pub display_name: Option<String>,
18    #[serde(rename = "group", skip_serializing_if = "Option::is_none")]
19    pub group: Option<String>,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
23    pub r#type: Option<String>,
24    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
25    pub options: Option<Vec<String>>,
26    #[serde(rename = "mandatory", skip_serializing_if = "Option::is_none")]
27    pub mandatory: Option<bool>,
28}
29
30impl InputUpdateCustomField {
31    pub fn new() -> InputUpdateCustomField {
32        InputUpdateCustomField {
33            display_name: None,
34            group: None,
35            description: None,
36            r#type: None,
37            options: None,
38            mandatory: None,
39        }
40    }
41}
42