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

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

use crate::v1_1::data_structures::item_structure::item_structure::ItemStructure;
use crate::v1_1::data_types::basic::data_value::DataValue;

/// The openEHR `CONSUMABLE_USE` class (the vendored BMM carries no documentation for it).
#[doc(alias = "CONSUMABLE_USE")]
#[derive(Debug, Clone, PartialEq)]
pub struct ConsumableUse {
    // inherited: RESOURCE_USE
    /// The `cost_data` attribute of openEHR `RESOURCE_USE` (the vendored BMM carries no documentation for it).
    pub cost_data: Option<ItemStructure>,
    /// The `amount` attribute of openEHR `CONSUMABLE_USE` (the vendored BMM carries no documentation for it).
    pub amount: Option<DataValue>,
}