thehive_client/models/
output_case_page.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 OutputCasePage {
16    #[serde(rename = "_id")]
17    pub _id: String,
18    #[serde(rename = "id")]
19    pub id: String,
20    #[serde(rename = "createdBy")]
21    pub created_by: String,
22    #[serde(rename = "createdAt")]
23    pub created_at: i64,
24    #[serde(rename = "updatedBy", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub updated_by: Option<Option<String>>,
26    #[serde(rename = "updatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub updated_at: Option<Option<i64>>,
28    #[serde(rename = "title")]
29    pub title: String,
30    #[serde(rename = "content")]
31    pub content: String,
32    #[serde(rename = "_type")]
33    pub _type: String,
34    #[serde(rename = "slug")]
35    pub slug: String,
36    #[serde(rename = "order")]
37    pub order: i32,
38    #[serde(rename = "category")]
39    pub category: String,
40}
41
42impl OutputCasePage {
43    pub fn new(_id: String, id: String, created_by: String, created_at: i64, title: String, content: String, _type: String, slug: String, order: i32, category: String) -> OutputCasePage {
44        OutputCasePage {
45            _id,
46            id,
47            created_by,
48            created_at,
49            updated_by: None,
50            updated_at: None,
51            title,
52            content,
53            _type,
54            slug,
55            order,
56            category,
57        }
58    }
59}
60