openehr-lang 0.0.128

openEHR LANG BMM/P_BMM object model, generated from BMM: generations v1_0 (LANG 1.0.0) and v1_1 (LANG 1.1.0, current; the stable BMM v2.x unit beside the paused BMM3 unit), plus hand-written ODIN/BEL/EL readers
Documentation
// @generated by openehr-codegen from BMM (`BMM_ASSIGNMENT`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::bmm3::expression::el_expression::ElExpression;
use crate::v1_1::bmm3::expression::el_value_generator::ElValueGenerator;

/// Statement type representing an assignment from a value-generating source to a writable entity, i.e. a variable reference or property.
///
/// At the meta-model level, may be understood as an initialisation of an existing meta-model instance.
#[doc(alias = "BMM_ASSIGNMENT")]
#[derive(Debug, Clone, PartialEq)]
pub struct BmmAssignment {
    /// The target variable on the notional left-hand side of this assignment.
    pub target: ElValueGenerator,
    /// Source right hand side) of the assignment.
    pub source: ElExpression,
}