pub struct Record {
pub attributes: i8,
pub timestamp_delta: i64,
pub offset_delta: i32,
pub key: Option<Bytes>,
pub value: Option<Bytes>,
pub headers: Vec<RecordHeader>,
}Expand description
A single record in a v2 crate::record::RecordBatch.
Fields§
§attributes: i8Reserved — currently always 0.
timestamp_delta: i64Signed varlong delta from the batch’s first_timestamp.
offset_delta: i32Signed varint delta from the batch’s base_offset.
key: Option<Bytes>Record key. None when the on-wire key length is -1.
value: Option<Bytes>Record value. None when the on-wire value length is -1.
headers: Vec<RecordHeader>Record headers.
Implementations§
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl !Freeze 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