openehr-rm 0.0.128

openEHR RM Reference Model, generated from BMM: generations v1_1 (RM 1.1.0) and v1_2 (RM 1.2.0, current)
Documentation
// @generated by openehr-codegen from BMM (`ITEM_STRUCTURE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::data_structures::item_structure::item_list::ItemList;
use crate::v1_1::data_structures::item_structure::item_single::ItemSingle;
use crate::v1_1::data_structures::item_structure::item_table::ItemTable;
use crate::v1_1::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>),
}