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_GENERIC_PARAMETER`) — DO NOT EDIT.
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

use crate::bmm::core::bmm_class::BmmClass;

/// Definition of a generic parameter in a class definition of a generic type.
#[doc(alias = "BMM_GENERIC_PARAMETER")]
#[derive(Debug, Clone, PartialEq)]
pub struct BmmGenericParameter {
    // inherited: BMM_MODEL_ELEMENT
    /// Optional documentation of this element.
    pub documentation: Option<String>,
    /// Name of the parameter, e.g. 'T' etc. The name is limited to 1 character and upper-case.
    pub name: String,
    /// Optional conformance constraint that must be another valid class name.
    pub conforms_to_type: Option<BmmClass>,
    /// If set, is the corresponding generic parameter definition in an ancestor class.
    pub inheritance_precursor: Option<Box<BmmGenericParameter>>,
}