jira_api_v2/models/
attachment_archive_item_readable.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/// AttachmentArchiveItemReadable : Metadata for an item in an attachment archive.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttachmentArchiveItemReadable {
17    /// The path of the archive item.
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    /// The position of the item within the archive.
21    #[serde(rename = "index", skip_serializing_if = "Option::is_none")]
22    pub index: Option<i64>,
23    /// The size of the archive item.
24    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
25    pub size: Option<String>,
26    /// The MIME type of the archive item.
27    #[serde(rename = "mediaType", skip_serializing_if = "Option::is_none")]
28    pub media_type: Option<String>,
29    /// The label for the archive item.
30    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
31    pub label: Option<String>,
32}
33
34impl AttachmentArchiveItemReadable {
35    /// Metadata for an item in an attachment archive.
36    pub fn new() -> AttachmentArchiveItemReadable {
37        AttachmentArchiveItemReadable {
38            path: None,
39            index: None,
40            size: None,
41            media_type: None,
42            label: None,
43        }
44    }
45}
46