pub struct Header<'a, V> {
pub key: &'a str,
pub value: Option<V>,
}
Expand description
A Kafka message header.
Fields§
§key: &'a str
The header’s key.
value: Option<V>
The header’s value.
Trait Implementations§
Source§impl<'a, V: Ord> Ord for Header<'a, V>
impl<'a, V: Ord> Ord for Header<'a, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, V: PartialOrd> PartialOrd for Header<'a, V>
impl<'a, V: PartialOrd> PartialOrd for Header<'a, V>
impl<'a, V: Eq> Eq for Header<'a, V>
impl<'a, V> StructuralPartialEq for Header<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for Header<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for Header<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for Header<'a, V>where
V: Send,
impl<'a, V> Sync for Header<'a, V>where
V: Sync,
impl<'a, V> Unpin for Header<'a, V>where
V: Unpin,
impl<'a, V> UnwindSafe for Header<'a, V>where
V: UnwindSafe,
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