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

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

use crate::v1_1::common::generic::party_identified::PartyIdentified;
use crate::v1_1::common::generic::party_self::PartySelf;

/// Closed subtype set of `PARTY_PROXY`, dispatched on each payload's `_type`.
///
/// Abstract concept of a proxy description of a party, including an optional link to data for this party in a demographic or other identity management system.
///
/// Sub- typed into `PARTY_IDENTIFIED` and `PARTY_SELF`.
#[doc(alias = "PARTY_PROXY")]
#[derive(Debug, Clone, PartialEq)]
pub enum PartyProxy {
    /// The `PARTY_IDENTIFIED` subtype of `PARTY_PROXY`.
    PartyIdentified(PartyIdentified),
    /// The `PARTY_SELF` subtype of `PARTY_PROXY`.
    PartySelf(PartySelf),
}