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 (`AUTHORED_RESOURCE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v2_4::aom2::archetype::authored_archetype::AuthoredArchetype;
use crate::v2_4::aom2::persistence::archetype::p_authored_archetype::PAuthoredArchetype;

/// Closed subtype set of `AUTHORED_RESOURCE`, dispatched on each payload's `_type`.
///
/// Abstract idea of an online resource created by a human author.
#[doc(alias = "AUTHORED_RESOURCE")]
#[derive(Debug, Clone, PartialEq)]
pub enum AuthoredResource {
    /// The `AUTHORED_ARCHETYPE` subtype of `AUTHORED_RESOURCE`.
    AuthoredArchetype(Box<AuthoredArchetype>),
    /// The `P_AUTHORED_ARCHETYPE` subtype of `AUTHORED_RESOURCE`.
    PAuthoredArchetype(Box<PAuthoredArchetype>),
}