jira_api_v2/models/
attachment_archive_metadata_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/// AttachmentArchiveMetadataReadable : Metadata for an archive (for example a zip) and its contents.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttachmentArchiveMetadataReadable {
17    /// The ID of the attachment.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The name of the archive file.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The list of the items included in the archive.
24    #[serde(rename = "entries", skip_serializing_if = "Option::is_none")]
25    pub entries: Option<Vec<models::AttachmentArchiveItemReadable>>,
26    /// The number of items included in the archive.
27    #[serde(rename = "totalEntryCount", skip_serializing_if = "Option::is_none")]
28    pub total_entry_count: Option<i64>,
29    /// The MIME type of the attachment.
30    #[serde(rename = "mediaType", skip_serializing_if = "Option::is_none")]
31    pub media_type: Option<String>,
32}
33
34impl AttachmentArchiveMetadataReadable {
35    /// Metadata for an archive (for example a zip) and its contents.
36    pub fn new() -> AttachmentArchiveMetadataReadable {
37        AttachmentArchiveMetadataReadable {
38            id: None,
39            name: None,
40            entries: None,
41            total_entry_count: None,
42            media_type: None,
43        }
44    }
45}
46