diff options
author | PradeepKiruvale <PRADEEPKIRUVALE@gmail.com> | 2022-01-11 19:11:07 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 19:11:07 +0530 |
commit | 141e93c03c8f9d9a9dd7076830445b3fd9cd5154 (patch) | |
tree | 794582fdad064c6021fb02db200f8a7d00260d67 /crates/core/c8y_smartrest/src/smartrest_serializer.rs | |
parent | 1f41ff7f0909cee0452801f31ab983a581abfd8d (diff) |
[663] agent topics (#731)
* move topics to json_sm crate
* rename json_sm to sm_interface
* format
* rename agent interface
* fix order of crates
* rename crate
* rename topics enum
* refactor downloader code
* move topicerror to error.rs
* trigger wf
* cargo fmt
* address review comments
* separate c8y topics
* add tests
* cargo fmt
* change match cases
* use download from common crate
* update test names
* fix the match issue
* fix the topic matching
* address review comments
* remove mqtt dependancy
* simplify try_from
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
Diffstat (limited to 'crates/core/c8y_smartrest/src/smartrest_serializer.rs')
-rw-r--r-- | crates/core/c8y_smartrest/src/smartrest_serializer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/c8y_smartrest/src/smartrest_serializer.rs b/crates/core/c8y_smartrest/src/smartrest_serializer.rs index e7934d7f..7f548d74 100644 --- a/crates/core/c8y_smartrest/src/smartrest_serializer.rs +++ b/crates/core/c8y_smartrest/src/smartrest_serializer.rs @@ -1,6 +1,6 @@ use crate::error::SmartRestSerializerError; +use agent_interface::{OperationStatus, SoftwareUpdateResponse}; use csv::{QuoteStyle, WriterBuilder}; -use json_sm::{OperationStatus, SoftwareUpdateResponse}; use serde::{Deserialize, Serialize, Serializer}; type SmartRest = String; @@ -208,7 +208,7 @@ fn serialize_smartrest<S: Serialize>(record: S) -> Result<String, SmartRestSeria #[cfg(test)] mod tests { use super::*; - use json_sm::*; + use agent_interface::*; #[test] fn serialize_smartrest_supported_operations() { |