pub struct Header {
pub key: String,
pub value: Option<Bytes>,
}Expand description
A single Kafka record header: a string key and an opaque optional value.
Mirrors crabka_protocol::records::RecordHeader and the producer’s Header;
kept here so the connector SPI does not pull in the wire-record crates.
Fields§
§key: StringThe header key. Not required to be unique within a record.
value: Option<Bytes>The header value, or None for a null-valued header.
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl !Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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