#[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-4
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: i32
The index of the partition within the topic.
Supported API versions: 0-4
committed_offset: i64
The message offset to be committed.
Supported API versions: 0-4
committed_leader_epoch: i32
The leader epoch of the last consumed record.
Supported API versions: 2-4
committed_metadata: Option<StrBytes>
Any associated metadata the client wants to keep.
Supported API versions: 0-4
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-4
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-4
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-4
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-4
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 Decodable for TxnOffsetCommitRequestPartition
Available on crate feature broker
only.
impl Decodable for TxnOffsetCommitRequestPartition
broker
only.Source§impl Encodable for TxnOffsetCommitRequestPartition
Available on crate feature client
only.
impl Encodable for TxnOffsetCommitRequestPartition
client
only.Source§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 ==
.