openehr-lang 0.0.76

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

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

use crate::v1_1::beom::core::expr_binary_operator::ExprBinaryOperator;
use crate::v1_1::beom::core::expr_for_all::ExprForAll;
use crate::v1_1::beom::core::expr_function_call::ExprFunctionCall;
use crate::v1_1::beom::core::expr_literal::ExprLiteral;
use crate::v1_1::beom::core::expr_unary_operator::ExprUnaryOperator;
use crate::v1_1::beom::core::expr_value_ref::ExprValueRef;
use crate::v1_1::beom::core::expr_variable_ref::ExprVariableRef;

/// Closed subtype set of `EXPRESSION`, dispatched on each payload's `_type`.
///
/// Abstract parent of all expression meta-types.
#[doc(alias = "EXPRESSION")]
#[derive(Debug, Clone, PartialEq)]
pub enum Expression {
    /// The `EXPR_BINARY_OPERATOR` subtype of `EXPRESSION`.
    ExprBinaryOperator(Box<ExprBinaryOperator>),
    /// The `EXPR_FOR_ALL` subtype of `EXPRESSION`.
    ExprForAll(Box<ExprForAll>),
    /// The `EXPR_FUNCTION_CALL` subtype of `EXPRESSION`.
    ExprFunctionCall(ExprFunctionCall),
    /// The `EXPR_LITERAL` subtype of `EXPRESSION`.
    ExprLiteral(ExprLiteral),
    /// The `EXPR_UNARY_OPERATOR` subtype of `EXPRESSION`.
    ExprUnaryOperator(Box<ExprUnaryOperator>),
    /// The `EXPR_VALUE_REF` subtype of `EXPRESSION`.
    ExprValueRef(ExprValueRef),
    /// The `EXPR_VARIABLE_REF` subtype of `EXPRESSION`.
    ExprVariableRef(ExprVariableRef),
}