pub struct KafkaMessage {
pub topic: String,
pub partition: i32,
pub offset: i64,
pub key: Option<Vec<u8>>,
pub value: Option<Vec<u8>>,
pub timestamp: Option<i64>,
pub headers: Option<HashMap<String, String>>,
}
Fields§
§topic: String
§partition: i32
§offset: i64
§key: Option<Vec<u8>>
§value: Option<Vec<u8>>
§timestamp: Option<i64>
§headers: Option<HashMap<String, String>>
Trait Implementations§
Source§impl Debug for KafkaMessage
impl Debug for KafkaMessage
Source§impl Default for KafkaMessage
impl Default for KafkaMessage
Source§fn default() -> KafkaMessage
fn default() -> KafkaMessage
Returns the “default value” for a type. Read more
Source§impl From<OwnedMessage> for KafkaMessage
impl From<OwnedMessage> for KafkaMessage
Source§fn from(v: OwnedMessage) -> Self
fn from(v: OwnedMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KafkaMessage
impl RefUnwindSafe for KafkaMessage
impl Send for KafkaMessage
impl Sync for KafkaMessage
impl Unpin for KafkaMessage
impl UnwindSafe for KafkaMessage
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