pub struct RecordMeta {
pub partition: PartitionId,
pub offset: i64,
pub event_time_ms: i64,
pub key_hash: Option<u64>,
}Expand description
Per-record metadata. Copy, no drop glue — moves through operators for
free and never touches the heap.
Fields§
§partition: PartitionIdSource partition this record was read from.
offset: i64Source offset (e.g. Kafka offset) of the originating payload.
event_time_ms: i64Event time in milliseconds since the epoch, as reported by the source (e.g. the Kafka message timestamp).
key_hash: Option<u64>Stable hash of the message key, when the source provides one; used by key-based shard routing.
Trait Implementations§
Source§impl Clone for RecordMeta
impl Clone for RecordMeta
Source§fn clone(&self) -> RecordMeta
fn clone(&self) -> RecordMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordMeta
impl Debug for RecordMeta
impl Copy for RecordMeta
Auto Trait Implementations§
impl Freeze for RecordMeta
impl RefUnwindSafe for RecordMeta
impl Send for RecordMeta
impl Sync for RecordMeta
impl Unpin for RecordMeta
impl UnsafeUnpin for RecordMeta
impl UnwindSafe for RecordMeta
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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