openehr-rm 0.0.128

openEHR RM Reference Model, generated from BMM: generations v1_1 (RM 1.1.0) and v1_2 (RM 1.2.0, current)
Documentation
// @generated by openehr-codegen from BMM (`VIEW_ITEM`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::common::archetyped::locatable::Locatable;
use crate::v1_1::composition::view::citation::Citation;
use crate::v1_1::composition::view::view_section::ViewSection;

/// Closed subtype set of `VIEW_ITEM`, dispatched on each payload's `_type`.
#[doc(alias = "VIEW_ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub enum ViewItem {
    /// The `CITATION` subtype of `VIEW_ITEM`.
    Citation(Citation<Locatable>),
    /// The `VIEW_SECTION` subtype of `VIEW_ITEM`.
    ViewSection(ViewSection),
}