// @generated by openehr-codegen from BMM (`P_BMM_GENERIC_PROPERTY`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
//! The openEHR `P_BMM_GENERIC_PROPERTY` spec class, generated from the vendored BMM
//! meta-model.
use crate::v1_0::bmm::core::feature::bmm_unitary_property::BmmUnitaryProperty;
use crate::v1_0::bmm_persistence::p_bmm_generic_type::PBmmGenericType;
/// Persistent form of `BMM_GENERIC_PROPERTY`.
#[doc(alias = "P_BMM_GENERIC_PROPERTY")]
#[derive(Debug, Clone, PartialEq)]
pub struct PBmmGenericProperty {
// inherited: P_BMM_MODEL_ELEMENT
/// Optional documentation of this element.
pub documentation: Option<String>,
// inherited: P_BMM_PROPERTY
/// Name of this property within its class. Persisted attribute.
pub name: String,
/// True if this property is mandatory in its class. Persisted attribute.
pub is_mandatory: Option<bool>,
/// True if this property is computed rather than stored in objects of this class. Persisted Attribute.
pub is_computed: Option<bool>,
/// True if this property is info model 'infrastructure' rather than 'data'. Persisted attribute.
pub is_im_infrastructure: Option<bool>,
/// True if this property is info model 'runtime' settable property. Persisted attribute.
pub is_im_runtime: Option<bool>,
/// Type definition of this property, if not a simple String type reference. Persistent attribute.
pub type_def: Option<PBmmGenericType>,
/// `BMM_PROPERTY` created by `_create_bmm_property_definition_`.
pub bmm_property: Option<BmmUnitaryProperty>,
}