Struct rocketmq_common::common::message::message_batch::MessageBatch
source · pub struct MessageBatch {
pub messages: Vec<Message>,
}Fields§
§messages: Vec<Message>Trait Implementations§
source§impl MessageTrait for MessageBatch
impl MessageTrait for MessageBatch
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 MessageBatch
impl RefUnwindSafe for MessageBatch
impl Send for MessageBatch
impl Sync for MessageBatch
impl Unpin for MessageBatch
impl UnwindSafe for MessageBatch
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