/*
 * 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 Note {
    #[serde(rename = "metadata")]
    pub metadata: Box<models::NoteMetadata>,
    #[serde(rename = "content")]
    pub content: String,
}

impl Note {
    pub fn new(metadata: models::NoteMetadata, content: String) -> Note {
        Note {
            metadata: Box::new(metadata),
            content,
        }
    }
}
