/*
 * doqium - service-data REST API
 *
 * doqium - service-data REST API
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::doqium_data_client::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachmentDetail {
    /// Attachment ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Parent note ID
    #[serde(rename = "noteId", skip_serializing_if = "Option::is_none")]
    pub note_id: Option<String>,
    /// Parent notebook ID
    #[serde(rename = "notebookId", skip_serializing_if = "Option::is_none")]
    pub notebook_id: Option<String>,
    /// Attachment file name
    #[serde(rename = "fileName", skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    /// Attachment file size in bytes
    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
    pub size: Option<f64>,
}

impl AttachmentDetail {
    pub fn new() -> AttachmentDetail {
        AttachmentDetail {
            id: None,
            note_id: None,
            notebook_id: None,
            file_name: None,
            size: None,
        }
    }
}
