gitea_client/models/
attachment.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Attachment : Attachment a generic attachment
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Attachment {
17    #[serde(rename = "browser_download_url", skip_serializing_if = "Option::is_none")]
18    pub browser_download_url: Option<String>,
19    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
20    pub created_at: Option<String>,
21    #[serde(rename = "download_count", skip_serializing_if = "Option::is_none")]
22    pub download_count: Option<i64>,
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<i64>,
25    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
28    pub size: Option<i64>,
29    #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
30    pub uuid: Option<String>,
31}
32
33impl Attachment {
34    /// Attachment a generic attachment
35    pub fn new() -> Attachment {
36        Attachment {
37            browser_download_url: None,
38            created_at: None,
39            download_count: None,
40            id: None,
41            name: None,
42            size: None,
43            uuid: None,
44        }
45    }
46}
47