thehive_client/models/
output_custom_field_value.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 OutputCustomFieldValue {
16    #[serde(rename = "_id")]
17    pub _id: String,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "description")]
21    pub description: String,
22    #[serde(rename = "type")]
23    pub r#type: String,
24    #[serde(rename = "value", deserialize_with = "Option::deserialize")]
25    pub value: Option<serde_json::Value>,
26    #[serde(rename = "order")]
27    pub order: i32,
28}
29
30impl OutputCustomFieldValue {
31    pub fn new(_id: String, name: String, description: String, r#type: String, value: Option<serde_json::Value>, order: i32) -> OutputCustomFieldValue {
32        OutputCustomFieldValue {
33            _id,
34            name,
35            description,
36            r#type,
37            value,
38            order,
39        }
40    }
41}
42