summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crates/core/thin_edge_json/src/alarm.rs6
-rw-r--r--crates/core/thin_edge_json/src/event.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/crates/core/thin_edge_json/src/alarm.rs b/crates/core/thin_edge_json/src/alarm.rs
index 783fc355..948f892b 100644
--- a/crates/core/thin_edge_json/src/alarm.rs
+++ b/crates/core/thin_edge_json/src/alarm.rs
@@ -4,14 +4,14 @@ use clock::Timestamp;
use serde::Deserialize;
/// In-memory representation of ThinEdge JSON alarm.
-#[derive(Debug, Deserialize, PartialEq)]
+#[derive(Debug, Deserialize, Eq, PartialEq)]
pub struct ThinEdgeAlarm {
pub name: String,
pub severity: AlarmSeverity,
pub data: Option<ThinEdgeAlarmData>,
}
-#[derive(Debug, Deserialize, PartialEq)]
+#[derive(Debug, Deserialize, Eq, PartialEq)]
pub enum AlarmSeverity {
Critical,
Major,
@@ -20,7 +20,7 @@ pub enum AlarmSeverity {
}
/// In-memory representation of ThinEdge JSON alarm payload
-#[derive(Debug, Deserialize, PartialEq)]
+#[derive(Debug, Deserialize, Eq, PartialEq)]
pub struct ThinEdgeAlarmData {
pub text: Option<String>,
diff --git a/crates/core/thin_edge_json/src/event.rs b/crates/core/thin_edge_json/src/event.rs
index 20052f0e..8d3950f5 100644
--- a/crates/core/thin_edge_json/src/event.rs
+++ b/crates/core/thin_edge_json/src/event.rs
@@ -7,7 +7,7 @@ use serde_json::Value;
use self::error::ThinEdgeJsonDeserializerError;
/// In-memory representation of ThinEdge JSON event.
-#[derive(Debug, Serialize, Deserialize, PartialEq)]
+#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct ThinEdgeEvent {
#[serde(rename = "type")]
pub name: String,
@@ -17,7 +17,7 @@ pub struct ThinEdgeEvent {
}
/// In-memory representation of ThinEdge JSON event payload
-#[derive(Debug, Serialize, Deserialize, PartialEq)]
+#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct ThinEdgeEventData {
pub text: Option<String>,