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_ATTRIBUTE_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_ATTRIBUTE_TUPLE` spec class, generated from the vendored BMM
//! meta-model.

use crate::v2_4::aom2::constraint_model::c_attribute::CAttribute;
use crate::v2_4::aom2::constraint_model::c_primitive_tuple::CPrimitiveTuple;

/// Object representing a constraint on an attribute tuple, i.e. a group of attributes that are constrained together.
///
/// Typically used for representing co-varying constraints like `{units, range}` constraints.
#[doc(alias = "C_ATTRIBUTE_TUPLE")]
#[derive(Debug, Clone, PartialEq)]
pub struct CAttributeTuple {
    /// List of `C_ATTRIBUTEs` forming the definition of the tuple.
    pub members: Option<Vec<CAttribute>>,
    /// Tuple definitions.
    pub tuples: Option<Vec<CPrimitiveTuple>>,
}