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

impl NoteRequest {
    pub fn new(content: String) -> NoteRequest {
        NoteRequest {
            metadata: None,
            content,
        }
    }
}
