openehr-am 0.0.78

openEHR AM Archetype Model, generated from BMM: generations v1_4 (AM 1.4.0, ADL 1.4) and v2_4 (AM 2.4.0, ADL 2; current)
Documentation
// @generated by openehr-codegen from BMM (`P_BMM_GENERIC_FUNCTION_PARAMETER`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v2_4::bmm_persistence::p_bmm_generic_type::PBmmGenericType;

/// Persistent form of a function parameter whose type is a generic type such as `Interval<Time>`.
#[doc(alias = "P_BMM_GENERIC_FUNCTION_PARAMETER")]
#[derive(Debug, Clone, PartialEq)]
pub struct PBmmGenericFunctionParameter {
    // inherited: P_BMM_MODEL_ELEMENT
    /// Optional documentation of this element.
    pub documentation: Option<String>,

    // inherited: P_BMM_FUNCTION_PARAMETER
    /// Name of this parameter within its function signature. Persisted attribute.
    pub name: String,
    /// True if this parameter is allowed to be Void (null) in a call. Persisted attribute.
    pub is_nullable: Option<bool>,
    /// Type definition of this parameter. Persisted attribute.
    pub type_def: PBmmGenericType,
}