uses a proc-macro to automate command definitions
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user