// @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>>,
}