openehr-am 0.0.78

openEHR AM Archetype Model, generated from BMM: generations v1_4 (AM 1.4.0, ADL 1.4) and v2_4 (AM 2.4.0, ADL 2; current)
Documentation
// @generated by openehr-codegen from BMM (`P_BMM_INTERFACE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v2_4::bmm_persistence::p_bmm_function::PBmmFunction;

/// Persistent form of a BMM interface, i.e. a class-like definition consisting only of functions (no state). Used to capture pure operation interfaces.
#[doc(alias = "P_BMM_INTERFACE")]
#[derive(Debug, Clone, PartialEq)]
pub struct PBmmInterface {
    // inherited: P_BMM_MODEL_ELEMENT
    /// Optional documentation of this element.
    pub documentation: Option<String>,
    /// Name of this interface. Persisted attribute.
    pub name: String,
    /// Functions (routines) declared by this interface, keyed by name. Persistent attribute.
    pub functions: Option<std::collections::BTreeMap<String, PBmmFunction>>,
}