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

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

use crate::bmm3::expression::el_case::ElCase;
use crate::bmm3::expression::el_conditional_expression::ElConditionalExpression;

/// Closed subtype set of `EL_DECISION_BRANCH`, dispatched on each payload's `_type`.
///
/// Abstract parent of meta-types representing a branch of some kind of decision structure. Defines `result` as being of the generic type `T`.
#[doc(alias = "EL_DECISION_BRANCH")]
#[derive(Debug, Clone, PartialEq)]
pub enum ElDecisionBranch<T> {
    /// The `EL_CASE` subtype of `EL_DECISION_BRANCH`.
    ElCase(ElCase<T>),
    /// The `EL_CONDITIONAL_EXPRESSION` subtype of `EL_DECISION_BRANCH`.
    ElConditionalExpression(ElConditionalExpression<T>),
}