#[non_exhaustive]pub struct TxnOffsetCommitRequestPartition {
pub partition_index: i32,
pub committed_offset: i64,
pub committed_leader_epoch: i32,
pub committed_metadata: Option<StrBytes>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-3
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.partition_index: i32The index of the partition within the topic.
Supported API versions: 0-3
committed_offset: i64The message offset to be committed.
Supported API versions: 0-3
committed_leader_epoch: i32The leader epoch of the last consumed record.
Supported API versions: 2-3
committed_metadata: Option<StrBytes>Any associated metadata the client wants to keep.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl TxnOffsetCommitRequestPartition
impl TxnOffsetCommitRequestPartition
sourcepub fn with_partition_index(self, value: i32) -> Self
pub fn with_partition_index(self, value: i32) -> Self
Sets partition_index to the passed value.
The index of the partition within the topic.
Supported API versions: 0-3
sourcepub fn with_committed_offset(self, value: i64) -> Self
pub fn with_committed_offset(self, value: i64) -> Self
Sets committed_offset to the passed value.
The message offset to be committed.
Supported API versions: 0-3
sourcepub fn with_committed_leader_epoch(self, value: i32) -> Self
pub fn with_committed_leader_epoch(self, value: i32) -> Self
Sets committed_leader_epoch to the passed value.
The leader epoch of the last consumed record.
Supported API versions: 2-3
sourcepub fn with_committed_metadata(self, value: Option<StrBytes>) -> Self
pub fn with_committed_metadata(self, value: Option<StrBytes>) -> Self
Sets committed_metadata to the passed value.
Any associated metadata the client wants to keep.
Supported API versions: 0-3
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Clone for TxnOffsetCommitRequestPartition
impl Clone for TxnOffsetCommitRequestPartition
source§fn clone(&self) -> TxnOffsetCommitRequestPartition
fn clone(&self) -> TxnOffsetCommitRequestPartition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Message for TxnOffsetCommitRequestPartition
impl Message for TxnOffsetCommitRequestPartition
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for TxnOffsetCommitRequestPartition
impl PartialEq for TxnOffsetCommitRequestPartition
source§fn eq(&self, other: &TxnOffsetCommitRequestPartition) -> bool
fn eq(&self, other: &TxnOffsetCommitRequestPartition) -> bool
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)