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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// @generated by openehr-codegen from BMM (`VARIABLE_DECLARATION`) — DO NOT EDIT.

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

use crate::beom::types::expr_type_def::ExprTypeDef;

/// Meta-type for the declaration of a named variable that can be used in an expression.
#[doc(alias = "VARIABLE_DECLARATION")]
#[derive(Debug, Clone, PartialEq)]
pub struct VariableDeclaration {
    /// Name of the variable.
    pub name: String,
    /// Primitive type of the variable, enabling its use to be type-checked in expressions.
    pub r#type: ExprTypeDef,
}