Struct rocketmq_common::common::message::message_single::Message
source · pub struct Message {
pub topic: String,
pub flag: i32,
pub properties: HashMap<String, String>,
pub body: Option<Bytes>,
pub transaction_id: Option<String>,
}Fields§
§topic: String§flag: i32§properties: HashMap<String, String>§body: Option<Bytes>§transaction_id: Option<String>Implementations§
source§impl Message
impl Message
pub fn clear_property(&mut self, name: impl Into<String>)
pub fn set_properties(&mut self, properties: HashMap<String, String>)
pub fn get_property(&self, key: impl Into<String>) -> Option<String>
pub fn body(&self) -> Option<Bytes>
pub fn flag(&self) -> i32
pub fn topic(&self) -> &str
pub fn properties(&self) -> &HashMap<String, String>
pub fn transaction_id(&self) -> Option<&str>
pub fn is_wait_store_msg_ok(&self) -> bool
Trait Implementations§
source§impl MessageTrait for Message
impl MessageTrait for Message
fn topic(&self) -> &str
fn with_topic(&mut self, topic: impl Into<String>)
fn put_property(&mut self, key: impl Into<String>, value: impl Into<String>)
fn properties(&self) -> &HashMap<String, String>
fn put_user_property( &mut self, name: impl Into<String>, value: impl Into<String> )
fn delay_time_level(&self) -> i32
fn with_delay_time_level(&self, level: i32) -> i32
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more