lizhanhui commented on code in PR #658: URL: https://github.com/apache/rocketmq-clients/pull/658#discussion_r1437968517
########## rust/src/model/message.rs: ########## @@ -21,9 +21,27 @@ use std::collections::HashMap; use crate::error::{ClientError, ErrorKind}; use crate::model::common::Endpoints; +use crate::model::message::MessageType::{DELAY, FIFO, NORMAL, TRANSACTION}; use crate::model::message_id::UNIQ_ID_GENERATOR; use crate::pb; +pub enum MessageType { + NORMAL = 1, + FIFO = 2, + DELAY = 3, + TRANSACTION = 4, +} + +fn transform_to_pb_message_type(message_type: &MessageType) -> i32 { Review Comment: Yes, it makes sense. -- 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: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org