1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// @generated by openehr-codegen from BMM (`BMM_LOCAL`) — DO NOT EDIT.
//! The openEHR `BMM_LOCAL` spec class, generated from the vendored BMM
//! meta-model.
#![expect(
clippy::disallowed_types,
reason = "adjudicated free-form JSON slots: serde_json::Value is workspace-banned (#1694); a generated carrier exists only where the spec leaves the slot open, and each adjudicated field's NOTE names its citation"
)]
use crate::bmm3::core::entity::bmm_type::BmmType;
/// A routine local variable (writable).
#[doc(alias = "BMM_LOCAL")]
#[derive(Debug, Clone, PartialEq)]
pub struct BmmLocal {
// inherited: BMM_MODEL_ELEMENT
/// Name of this model element.
pub name: String,
/// Optional documentation of this element, as a keyed list.
///
/// It is strongly recommended to use the following key /type combinations for the relevant purposes:
///
/// * `"purpose": String`
/// * `"keywords": List<String>`
/// * `"use": String`
/// * `"misuse": String`
/// * `"references": String`
///
/// Other keys and value types may be freely added.
pub documentation: Option<std::collections::BTreeMap<String, serde_json::Value>>,
// NOTE: `scope` (BMM-mandatory back-reference) omitted — LANG BMM3 bmm_variable (scope: BMM_ROUTINE — redefinition of BMM_MODEL_ELEMENT.scope). A back-reference is not forward-owned data and never appears on the canonical wire; emitting it as an owning field would make this type non-constructible.
/// Optional meta-data of this element, as a keyed list. May be used to extend the meta-model.
pub extensions: Option<std::collections::BTreeMap<String, serde_json::Value>>,
// inherited: BMM_FORMAL_ELEMENT
/// Declared or inferred static type of the entity.
pub r#type: BmmType,
/// True if this element can be null (Void) at execution time. May be interpreted as optionality in subtypes..
pub is_nullable: Option<bool>,
}