openehr-am 0.0.128

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 (`C_PRIMITIVE_TUPLE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

use crate::v2_4::aom2::constraint_model::c_primitive_object::CPrimitiveObject;

/// Class representing a single object tuple instance in a tuple constraint.
///
/// Each such instance is a vector of object constraints, where each member (each `C_PRIMITIVE_OBJECT`) corresponds to one of the `C_ATTRIBUTEs` referred to by the owning `C_ATTRIBUTE_TUPLE`.
#[doc(alias = "C_PRIMITIVE_TUPLE")]
#[derive(Debug, Clone, PartialEq)]
pub struct CPrimitiveTuple {
    /// Object constraint members of this tuple group.
    pub members: openehr_base::containers::NonEmptyVec<CPrimitiveObject>,
}