jira_api_v2/models/
attachment_settings.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AttachmentSettings : Details of the instance's attachment settings.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttachmentSettings {
17    /// Whether the ability to add attachments is enabled.
18    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
19    pub enabled: Option<bool>,
20    /// The maximum size of attachments permitted, in bytes.
21    #[serde(rename = "uploadLimit", skip_serializing_if = "Option::is_none")]
22    pub upload_limit: Option<i64>,
23}
24
25impl AttachmentSettings {
26    /// Details of the instance's attachment settings.
27    pub fn new() -> AttachmentSettings {
28        AttachmentSettings {
29            enabled: None,
30            upload_limit: None,
31        }
32    }
33}
34