openehr-rm 0.0.4

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

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

use crate::data_structures::representation::cluster::Cluster;
use crate::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),
}