diff options
author | initard <solo@softwareag.com> | 2022-04-26 19:12:31 +0100 |
---|---|---|
committer | initard <solo@softwareag.com> | 2022-05-03 17:54:08 +0100 |
commit | e27c8e758610166d50c2e1c7ebd64e709c5bf571 (patch) | |
tree | 822a079a5006f5c5dfb3401ae593e9686bead0ef /crates/core/c8y_smartrest/src/smartrest_serializer.rs | |
parent | da4f34614fd832c0e8699745325688ca825b1313 (diff) |
operation logs improvement #1027
Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/core/c8y_smartrest/src/smartrest_serializer.rs')
-rw-r--r-- | crates/core/c8y_smartrest/src/smartrest_serializer.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/core/c8y_smartrest/src/smartrest_serializer.rs b/crates/core/c8y_smartrest/src/smartrest_serializer.rs index cd3867b5..5eabba04 100644 --- a/crates/core/c8y_smartrest/src/smartrest_serializer.rs +++ b/crates/core/c8y_smartrest/src/smartrest_serializer.rs @@ -38,14 +38,14 @@ where #[derive(Debug, Deserialize, Serialize, PartialEq)] pub struct SmartRestSetSupportedLogType { pub message_id: &'static str, - pub supported_operations: Vec<&'static str>, + pub supported_operations: Vec<String>, } -impl Default for SmartRestSetSupportedLogType { - fn default() -> Self { +impl From<Vec<String>> for SmartRestSetSupportedLogType { + fn from(operation_types: Vec<String>) -> Self { Self { message_id: "118", - supported_operations: vec!["software-management"], + supported_operations: operation_types, } } } |