/*
 * 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 OrphanedItems {
    /// Notebooks without a valid parent workspace
    #[serde(rename = "notebooks", skip_serializing_if = "Option::is_none")]
    pub notebooks: Option<Vec<models::NotebookDetail>>,
    /// Notes without a valid parent notebook
    #[serde(rename = "notes", skip_serializing_if = "Option::is_none")]
    pub notes: Option<Vec<models::NoteDetail>>,
    /// Attachments without a valid parent note
    #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
    pub attachments: Option<Vec<models::AttachmentDetail>>,
}

impl OrphanedItems {
    pub fn new() -> OrphanedItems {
        OrphanedItems {
            notebooks: None,
            notes: None,
            attachments: None,
        }
    }
}
