pub struct OffsetFetchResponsePartitions {
pub partition_index: i32,
pub committed_offset: i64,
pub committed_leader_epoch: i32,
pub metadata: Option<KafkaString>,
pub error_code: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
committed_offset: i64The committed message offset.
committed_leader_epoch: i32The leader epoch.
metadata: Option<KafkaString>The partition metadata.
error_code: i16The partition-level error code, or 0 if there was no error.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl OffsetFetchResponsePartitions
impl OffsetFetchResponsePartitions
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_committed_offset(self, value: i64) -> Self
pub fn with_committed_leader_epoch(self, value: i32) -> Self
pub fn with_metadata(self, value: Option<KafkaString>) -> Self
pub fn with_error_code(self, value: i16) -> 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 OffsetFetchResponsePartitions
impl Clone for OffsetFetchResponsePartitions
Source§fn clone(&self) -> OffsetFetchResponsePartitions
fn clone(&self) -> OffsetFetchResponsePartitions
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 PartialEq for OffsetFetchResponsePartitions
impl PartialEq for OffsetFetchResponsePartitions
Source§fn eq(&self, other: &OffsetFetchResponsePartitions) -> bool
fn eq(&self, other: &OffsetFetchResponsePartitions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OffsetFetchResponsePartitions
Auto Trait Implementations§
impl !Freeze for OffsetFetchResponsePartitions
impl RefUnwindSafe for OffsetFetchResponsePartitions
impl Send for OffsetFetchResponsePartitions
impl Sync for OffsetFetchResponsePartitions
impl Unpin for OffsetFetchResponsePartitions
impl UnsafeUnpin for OffsetFetchResponsePartitions
impl UnwindSafe for OffsetFetchResponsePartitions
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