gitea_rs/models/
general_attachment_settings.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GeneralAttachmentSettings : GeneralAttachmentSettings contains global Attachment settings exposed by API
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct GeneralAttachmentSettings {
17    #[serde(rename = "allowed_types", skip_serializing_if = "Option::is_none")]
18    pub allowed_types: Option<String>,
19    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
20    pub enabled: Option<bool>,
21    #[serde(rename = "max_files", skip_serializing_if = "Option::is_none")]
22    pub max_files: Option<i64>,
23    #[serde(rename = "max_size", skip_serializing_if = "Option::is_none")]
24    pub max_size: Option<i64>,
25}
26
27impl GeneralAttachmentSettings {
28    /// GeneralAttachmentSettings contains global Attachment settings exposed by API
29    pub fn new() -> GeneralAttachmentSettings {
30        GeneralAttachmentSettings {
31            allowed_types: None,
32            enabled: None,
33            max_files: None,
34            max_size: None,
35        }
36    }
37}
38
39