openehr-rm 0.0.4

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

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

use crate::demographic::agent::Agent;
use crate::demographic::group::Group;
use crate::demographic::organisation::Organisation;
use crate::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),
}