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

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

use crate::v1_2::demographic::agent::Agent;
use crate::v1_2::demographic::group::Group;
use crate::v1_2::demographic::organisation::Organisation;
use crate::v1_2::demographic::person::Person;

/// Closed subtype set of `ACTOR`, dispatched on each payload's `_type`.
///
/// Ancestor of all real-world types, including people and organisations. An actor is any real-world entity capable of taking on a role.
#[doc(alias = "ACTOR")]
#[derive(Debug, Clone, PartialEq)]
pub enum Actor {
    /// The `AGENT` subtype of `ACTOR`.
    Agent(Agent),
    /// The `GROUP` subtype of `ACTOR`.
    Group(Group),
    /// The `ORGANISATION` subtype of `ACTOR`.
    Organisation(Organisation),
    /// The `PERSON` subtype of `ACTOR`.
    Person(Person),
}