/*
 * 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 NoteDetail {
    /// Note ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Parent workspace ID
    #[serde(rename = "workspaceId", skip_serializing_if = "Option::is_none")]
    pub workspace_id: Option<String>,
    /// Parent notebook ID
    #[serde(rename = "notebookId", skip_serializing_if = "Option::is_none")]
    pub notebook_id: Option<String>,
    /// Note title
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Number of attachments in this note
    #[serde(rename = "attachmentsCount", skip_serializing_if = "Option::is_none")]
    pub attachments_count: Option<f64>,
}

impl NoteDetail {
    pub fn new() -> NoteDetail {
        NoteDetail {
            id: None,
            workspace_id: None,
            notebook_id: None,
            title: None,
            attachments_count: None,
        }
    }
}
