openehr-lang 0.0.128

openEHR LANG BMM/P_BMM object model, generated from BMM: generations v1_0 (LANG 1.0.0) and v1_1 (LANG 1.1.0, current; the stable BMM v2.x unit beside the paused BMM3 unit), plus hand-written ODIN/BEL/EL readers
Documentation
// @generated by openehr-codegen from BMM (`P_BMM_CONTAINER_FUNCTION_PARAMETER`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::bmm_persistence::p_bmm_container_type::PBmmContainerType;
use openehr_base::v1_3::foundation_types::interval::interval::Interval;

/// Persistent form of a function parameter whose type is a container type such as `List<T>`.
#[doc(alias = "P_BMM_CONTAINER_FUNCTION_PARAMETER")]
#[derive(Debug, Clone, PartialEq)]
pub struct PBmmContainerFunctionParameter {
    // 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: PBmmContainerType,
    /// Cardinality of this parameter, if a container type. Persisted attribute.
    pub cardinality: Option<Interval<i32>>,
}