/* * Gitea API * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.22.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// GeneralAttachmentSettings : GeneralAttachmentSettings contains global Attachment settings exposed by API #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct GeneralAttachmentSettings { #[serde(rename = "allowed_types", skip_serializing_if = "Option::is_none")] pub allowed_types: Option, #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")] pub enabled: Option, #[serde(rename = "max_files", skip_serializing_if = "Option::is_none")] pub max_files: Option, #[serde(rename = "max_size", skip_serializing_if = "Option::is_none")] pub max_size: Option, } impl GeneralAttachmentSettings { /// GeneralAttachmentSettings contains global Attachment settings exposed by API pub fn new() -> GeneralAttachmentSettings { GeneralAttachmentSettings { allowed_types: None, enabled: None, max_files: None, max_size: None, } } }