pub struct TxnOffsetCommitRequestPartition {
pub partition_index: i32,
pub committed_offset: i64,
pub committed_leader_epoch: i32,
pub committed_metadata: Option<KafkaString>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The index of the partition within the topic.
committed_offset: i64The message offset to be committed.
committed_leader_epoch: i32The leader epoch of the last consumed record.
committed_metadata: Option<KafkaString>Any associated metadata the client wants to keep.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TxnOffsetCommitRequestPartition
impl TxnOffsetCommitRequestPartition
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_committed_metadata(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 TxnOffsetCommitRequestPartition
impl Clone for TxnOffsetCommitRequestPartition
Source§fn clone(&self) -> TxnOffsetCommitRequestPartition
fn clone(&self) -> TxnOffsetCommitRequestPartition
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 TxnOffsetCommitRequestPartition
impl PartialEq for TxnOffsetCommitRequestPartition
Source§fn eq(&self, other: &TxnOffsetCommitRequestPartition) -> bool
fn eq(&self, other: &TxnOffsetCommitRequestPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TxnOffsetCommitRequestPartition
Auto Trait Implementations§
impl !Freeze for TxnOffsetCommitRequestPartition
impl RefUnwindSafe for TxnOffsetCommitRequestPartition
impl Send for TxnOffsetCommitRequestPartition
impl Sync for TxnOffsetCommitRequestPartition
impl Unpin for TxnOffsetCommitRequestPartition
impl UnsafeUnpin for TxnOffsetCommitRequestPartition
impl UnwindSafe for TxnOffsetCommitRequestPartition
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