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_VARIABLE`) — DO NOT EDIT.

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

use crate::bmm3::core::feature::bmm_local::BmmLocal;
use crate::bmm3::core::feature::bmm_parameter::BmmParameter;
use crate::bmm3::core::feature::bmm_result::BmmResult;
use crate::bmm3::core::feature::bmm_self::BmmSelf;

/// Closed subtype set of `BMM_VARIABLE`, dispatched on each payload's `_type`.
///
/// A routine-scoped formal element.
#[doc(alias = "BMM_VARIABLE")]
#[derive(Debug, Clone, PartialEq)]
pub enum BmmVariable {
    /// The `BMM_LOCAL` subtype of `BMM_VARIABLE`.
    BmmLocal(BmmLocal),
    /// The `BMM_PARAMETER` subtype of `BMM_VARIABLE`.
    BmmParameter(BmmParameter),
    /// The `BMM_RESULT` subtype of `BMM_VARIABLE`.
    BmmResult(BmmResult),
    /// The `BMM_SELF` subtype of `BMM_VARIABLE`.
    BmmSelf(BmmSelf),
}