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`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::data_structures::representation::cluster::Cluster;
use crate::v1_1::data_structures::representation::element::Element;

/// Closed subtype set of `ITEM`, dispatched on each payload's `_type`.
///
/// The abstract parent of `CLUSTER` and `ELEMENT` representation classes.
#[doc(alias = "ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub enum Item {
    /// The `CLUSTER` subtype of `ITEM`.
    Cluster(Cluster),
    /// The `ELEMENT` subtype of `ITEM`.
    Element(Element),
}