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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.