cortex_client/models/
attachment.rs

1/*
2 * Cortex API
3 *
4 * API for Cortex, a powerful observable analysis and active response engine.
5 *
6 * The version of the OpenAPI document: 3.1.8
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 Attachment {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
21    pub content_type: Option<String>,
22    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
23    pub size: Option<i64>,
24}
25
26impl Attachment {
27    pub fn new() -> Attachment {
28        Attachment {
29            id: None,
30            name: None,
31            content_type: None,
32            size: None,
33        }
34    }
35}
36