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

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

use crate::v1_2::ehr_extract::sync_extract::sync_extract::SyncExtract;
use crate::v1_2::ehr_extract::sync_extract::sync_extract_request::SyncExtractRequest;

/// Closed subtype set of `MESSAGE_CONTENT`, dispatched on each payload's `_type`.
///
/// Abstract parent of message payload types.
#[doc(alias = "MESSAGE_CONTENT")]
#[derive(Debug, Clone, PartialEq)]
pub enum MessageContent {
    /// The `SYNC_EXTRACT` subtype of `MESSAGE_CONTENT`.
    SyncExtract(SyncExtract),
    /// The `SYNC_EXTRACT_REQUEST` subtype of `MESSAGE_CONTENT`.
    SyncExtractRequest(SyncExtractRequest),
}