pub struct KeyValue {
pub key: KafkaString,
pub value: KafkaString,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§key: KafkaStringkey of the config
value: KafkaStringvalue of the config
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl KeyValue
impl KeyValue
pub fn with_key(self, value: KafkaString) -> Self
pub fn with_value(self, value: KafkaString) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl !Freeze for KeyValue
impl RefUnwindSafe for KeyValue
impl Send for KeyValue
impl Sync for KeyValue
impl Unpin for KeyValue
impl UnsafeUnpin for KeyValue
impl UnwindSafe for KeyValue
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