openehr-rm 0.0.4

openEHR RM 1.2.0 Reference Model, generated from BMM
Documentation
// @generated by openehr-codegen from BMM (`VERSION`) — DO NOT EDIT.
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

use crate::common::change_control::imported_version::ImportedVersion;
use crate::common::change_control::original_version::OriginalVersion;

/// Closed subtype set of `VERSION`, dispatched on each payload's `_type`.
///
/// Abstract model of one Version within a Version container, containing data, commit audit trail, and the identifier of its Contribution.
#[doc(alias = "VERSION")]
#[derive(Debug, Clone, PartialEq)]
pub enum Version<T> {
    /// The `IMPORTED_VERSION` subtype of `VERSION`.
    ImportedVersion(ImportedVersion<T>),
    /// The `ORIGINAL_VERSION` subtype of `VERSION`.
    OriginalVersion(OriginalVersion<T>),
}