Struct rdkafka_wrap::message::Header
source · 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 for Header<'a, V>where
V: Ord,
impl<'a, V> Ord for Header<'a, V>where V: Ord,
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> PartialEq<Header<'a, V>> for Header<'a, V>where
V: PartialEq<V>,
impl<'a, V> PartialEq<Header<'a, V>> for Header<'a, V>where V: PartialEq<V>,
source§impl<'a, V> PartialOrd<Header<'a, V>> for Header<'a, V>where
V: PartialOrd<V>,
impl<'a, V> PartialOrd<Header<'a, V>> for Header<'a, V>where V: PartialOrd<V>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, V> Eq for Header<'a, V>where V: Eq,
impl<'a, V> StructuralEq for Header<'a, V>
impl<'a, V> StructuralPartialEq for Header<'a, V>
Auto Trait Implementations§
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