openehr-lang 0.0.2

openEHR LANG 1.0.0: BMM/P_BMM object model (generated from BMM) plus a hand-written ODIN instance parser (the `odin` module — deliberately off the codegen path).
Documentation
// @generated by openehr-codegen from BMM (`BMM_CLASS`) — DO NOT EDIT.
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

use crate::bmm3::core::entity::bmm_generic_class::BmmGenericClass;
use crate::bmm3::core::entity::bmm_simple_class::BmmSimpleClass;

/// Closed subtype set of `BMM_CLASS`, dispatched on each payload's `_type`.
///
/// Meta-type corresponding a class definition in an object model.
///
/// Inheritance is specified by the `_ancestors_` attribute, which contains a list of _types_ rather than classes. Inheritance is thus understood in BMM as a stated relationship between classes. The equivalent relationship between types is conformance.
///
/// NOTE: unlike UML, the `_name_` is just the root name, even if the class is generic. Use `_type_name()_` to obtain the qualified type name.
#[doc(alias = "BMM_CLASS")]
#[derive(Debug, Clone, PartialEq)]
pub enum BmmClass {
    /// The `BMM_GENERIC_CLASS` subtype of `BMM_CLASS`.
    BmmGenericClass(BmmGenericClass),
    /// The `BMM_SIMPLE_CLASS` subtype of `BMM_CLASS`.
    BmmSimpleClass(BmmSimpleClass),
}