pub struct ConsumerRecord {
pub topic: String,
pub partition: i32,
pub offset: i64,
pub timestamp: i64,
pub headers: Vec<RecordHeader>,
pub key: Option<Bytes>,
pub value: Option<Bytes>,
}Expand description
Consumer Record.
Fields§
§topic: StringTopic name.
partition: i32Partition number.
offset: i64Kafka offset.
timestamp: i64Timestamp.
headers: Vec<RecordHeader>Headers.
key: Option<Bytes>Record key.
value: Option<Bytes>Record value.
Trait Implementations§
Source§impl Clone for ConsumerRecord
impl Clone for ConsumerRecord
Source§fn clone(&self) -> ConsumerRecord
fn clone(&self) -> ConsumerRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ConsumerRecord
impl RefUnwindSafe for ConsumerRecord
impl Send for ConsumerRecord
impl Sync for ConsumerRecord
impl Unpin for ConsumerRecord
impl UnsafeUnpin for ConsumerRecord
impl UnwindSafe for ConsumerRecord
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