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 (`C_TEMPORAL`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten 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_TEMPORAL` spec class, generated from the vendored BMM
//! meta-model.

use crate::v2_4::aom2::constraint_model::primitive::c_date::CDate;
use crate::v2_4::aom2::constraint_model::primitive::c_date_time::CDateTime;
use crate::v2_4::aom2::constraint_model::primitive::c_duration::CDuration;
use crate::v2_4::aom2::constraint_model::primitive::c_time::CTime;

/// Closed subtype set of `C_TEMPORAL`, dispatched on each payload's `_type`.
///
/// Purpose Abstract parent of `C_ORDERED` types whose base type is an ISO date/time type.
#[doc(alias = "C_TEMPORAL")]
#[derive(Debug, Clone, PartialEq)]
pub enum CTemporal {
    /// The `C_DATE` subtype of `C_TEMPORAL`.
    CDate(CDate),
    /// The `C_DATE_TIME` subtype of `C_TEMPORAL`.
    CDateTime(CDateTime),
    /// The `C_DURATION` subtype of `C_TEMPORAL`.
    CDuration(CDuration),
    /// The `C_TIME` subtype of `C_TEMPORAL`.
    CTime(CTime),
}