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

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

use crate::beom::core::assertion::Assertion;
use crate::beom::core::assignment::Assignment;
use crate::beom::core::variable_declaration::VariableDeclaration;

/// Closed subtype set of `STATEMENT`, dispatched on each payload's `_type`.
///
/// Meta-type for the notion of statement, which is a non-value-returning entity.
#[doc(alias = "STATEMENT")]
#[derive(Debug, Clone, PartialEq)]
pub enum Statement {
    /// The `ASSERTION` subtype of `STATEMENT`.
    Assertion(Assertion),
    /// The `ASSIGNMENT` subtype of `STATEMENT`.
    Assignment(Assignment),
    /// The `VARIABLE_DECLARATION` subtype of `STATEMENT`.
    VariableDeclaration(VariableDeclaration),
}