openehr-rm 0.0.4

openEHR RM 1.2.0 Reference Model, generated from BMM
Documentation
// @generated by openehr-codegen from BMM (`ITEM_STRUCTURE`) — DO NOT EDIT.

//! The openEHR `ITEM_STRUCTURE` spec class, generated from the vendored BMM
//! meta-model.

use crate::data_structures::item_structure::item_list::ItemList;
use crate::data_structures::item_structure::item_single::ItemSingle;
use crate::data_structures::item_structure::item_table::ItemTable;
use crate::data_structures::item_structure::item_tree::ItemTree;

/// Closed subtype set of `ITEM_STRUCTURE`, dispatched on each payload's `_type`.
///
/// Abstract parent class of all spatial data types.
#[doc(alias = "ITEM_STRUCTURE")]
#[derive(Debug, Clone, PartialEq)]
pub enum ItemStructure {
    /// The `ITEM_LIST` subtype of `ITEM_STRUCTURE`.
    ItemList(Box<ItemList>),
    /// The `ITEM_SINGLE` subtype of `ITEM_STRUCTURE`.
    ItemSingle(Box<ItemSingle>),
    /// The `ITEM_TABLE` subtype of `ITEM_STRUCTURE`.
    ItemTable(Box<ItemTable>),
    /// The `ITEM_TREE` subtype of `ITEM_STRUCTURE`.
    ItemTree(Box<ItemTree>),
}