Struct fluvio::dataplane::record::ConsumerRecord
source · pub struct ConsumerRecord {
pub offset: i64,
pub partition: u32,
pub record: Record,
/* private fields */
}
Expand description
Record that can be used by Consumer which needs access to metadata
Fields§
§offset: i64
The offset of this Record into its partition
partition: u32
The partition where this Record is stored
record: Record
The Record contents
Implementations§
source§impl ConsumerRecord
impl ConsumerRecord
sourcepub fn into_inner(self) -> Record
pub fn into_inner(self) -> Record
Returns the inner representation of the Record
sourcepub fn get_key(&self) -> Option<&RecordData>
pub fn get_key(&self) -> Option<&RecordData>
Returns record key
sourcepub fn get_value(&self) -> &RecordData
pub fn get_value(&self) -> &RecordData
Returns record value
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ConsumerRecord
impl RefUnwindSafe for ConsumerRecord
impl Send for ConsumerRecord
impl Sync for ConsumerRecord
impl Unpin 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