pub struct Record {
pub offset: u64,
pub timestamp: i64,
pub key: Option<Vec<u8>>,
pub value: Option<Vec<u8>>,
pub headers: Vec<Header>,
}Expand description
A record read from the log.
Fields§
§offset: u64Position of the record in its partition.
timestamp: i64Milliseconds since the epoch: given by the producer, or the local clock at append time.
key: Option<Vec<u8>>The message key, as sent.
value: Option<Vec<u8>>The message value, as sent.
headers: Vec<Header>The message headers, in order.
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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