pub struct Message {
pub key: Option<Bytes>,
pub value: Option<Bytes>,
pub headers: MessageHeaders,
}
Expand description
A message to be encoded as a Kafka record within a record batch.
Fields§
§key: Option<Bytes>
An optional key for the record.
value: Option<Bytes>
An optional value as the body of the record.
headers: MessageHeaders
Optional headers to be included in the record.
Implementations§
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