pub struct Key;Expand description
Reads the record key, when present.
Trait Implementations§
Source§impl ContextField for Key
impl ContextField for Key
Source§type Context = KafkaContext
type Context = KafkaContext
The per-delivery context type this key reads from.
Source§fn read(self, src: &KafkaContext) -> Option<Vec<u8>>
fn read(self, src: &KafkaContext) -> Option<Vec<u8>>
Reads this key’s field out of
src. Named apart from Field::get so a key
implementing both traits stays unambiguous to call.impl Copy for Key
impl Eq for Key
Source§impl Field<KafkaContext> for Key
impl Field<KafkaContext> for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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