uses a proc-macro to automate command definitions

This commit is contained in:
2025-12-31 00:23:30 -05:00
parent 6fdbb868b7
commit 0e28b0416a
26 changed files with 757 additions and 177 deletions

View File

@@ -7,7 +7,7 @@ use crate::command::error::Error::{
use anyhow::bail;
use api::data_type::DataType;
use api::data_value::DataValue;
use api::messages::command::{Command, CommandDefinition, CommandResponse};
use api::messages::command::{Command, CommandDefinition, CommandHeader, CommandResponse};
use api::messages::ResponseMessage;
use chrono::Utc;
use log::error;
@@ -137,7 +137,7 @@ impl CommandManagementService {
uuid,
response: Some(response_uuid),
payload: Command {
timestamp,
header: CommandHeader { timestamp },
parameters: result_parameters,
}
.into(),