Alonexc commented on code in PR #1156:
URL: 
https://github.com/apache/incubator-eventmesh/pull/1156#discussion_r945509733


##########
eventmesh-sdk-rust/eventmesh/src/message.rs:
##########
@@ -0,0 +1,38 @@
+use serde::{Deserialize, Serialize};
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub struct EventMeshMessage {
+    #[serde(rename = "bizseqno")]
+    pub biz_seq_no: String,
+    #[serde(rename = "uniqueid")]
+    pub unique_id: String,
+    pub topic: String,
+    pub content: String,
+    // pub prop: HashMap<String, String>,
+    pub ttl: i32,
+    // pub(crate) create_time: u64,
+}
+impl EventMeshMessage {
+    pub fn new(biz_seq_no: &str, unique_id: &str, topic: &str, content: &str, 
ttl: i32) -> Self {
+        Self {
+            biz_seq_no: biz_seq_no.to_string(),
+            unique_id: unique_id.to_string(),
+            topic: topic.to_string(),
+            content: content.to_string(),
+            ttl,

Review Comment:
   If the code is not used subsequently, it may be possible to remove the 
commented out code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to