pub struct BatchIndexAndErrorMessage {
pub batch_index: i32,
pub batch_index_error_message: Option<KafkaString>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§batch_index: i32The batch index of the record that caused the batch to be dropped.
batch_index_error_message: Option<KafkaString>The error message of the record that caused the batch to be dropped.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl BatchIndexAndErrorMessage
impl BatchIndexAndErrorMessage
pub fn with_batch_index(self, value: i32) -> Self
pub fn with_batch_index_error_message(self, value: Option<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§
Source§impl Clone for BatchIndexAndErrorMessage
impl Clone for BatchIndexAndErrorMessage
Source§fn clone(&self) -> BatchIndexAndErrorMessage
fn clone(&self) -> BatchIndexAndErrorMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchIndexAndErrorMessage
impl Debug for BatchIndexAndErrorMessage
Source§impl Default for BatchIndexAndErrorMessage
impl Default for BatchIndexAndErrorMessage
Source§impl PartialEq for BatchIndexAndErrorMessage
impl PartialEq for BatchIndexAndErrorMessage
Source§fn eq(&self, other: &BatchIndexAndErrorMessage) -> bool
fn eq(&self, other: &BatchIndexAndErrorMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchIndexAndErrorMessage
Auto Trait Implementations§
impl !Freeze for BatchIndexAndErrorMessage
impl RefUnwindSafe for BatchIndexAndErrorMessage
impl Send for BatchIndexAndErrorMessage
impl Sync for BatchIndexAndErrorMessage
impl Unpin for BatchIndexAndErrorMessage
impl UnsafeUnpin for BatchIndexAndErrorMessage
impl UnwindSafe for BatchIndexAndErrorMessage
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