openehr-rm 0.0.2

openEHR RM 1.2.0 Reference Model, generated from BMM
Documentation
// @generated by openehr-codegen from BMM (`MESSAGE_CONTENT`) — DO NOT EDIT.

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

use crate::ehr_extract::sync_extract::sync_extract::SyncExtract;
use crate::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),
}