#[non_exhaustive]pub struct OffsetCommitRequestPartition {
pub partition_index: i32,
pub committed_offset: i64,
pub committed_leader_epoch: i32,
pub commit_timestamp: i64,
pub committed_metadata: Option<StrBytes>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-9
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 partition index.
Supported API versions: 0-9
committed_offset: i64
The message offset to be committed.
Supported API versions: 0-9
committed_leader_epoch: i32
The leader epoch of this partition.
Supported API versions: 6-9
commit_timestamp: i64
The timestamp of the commit.
Supported API versions: 1
committed_metadata: Option<StrBytes>
Any associated metadata the client wants to keep.
Supported API versions: 0-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OffsetCommitRequestPartition
impl OffsetCommitRequestPartition
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 partition index.
Supported API versions: 0-9
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-9
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 this partition.
Supported API versions: 6-9
Sourcepub fn with_commit_timestamp(self, value: i64) -> Self
pub fn with_commit_timestamp(self, value: i64) -> Self
Sets commit_timestamp
to the passed value.
The timestamp of the commit.
Supported API versions: 1
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-9
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 OffsetCommitRequestPartition
impl Clone for OffsetCommitRequestPartition
Source§fn clone(&self) -> OffsetCommitRequestPartition
fn clone(&self) -> OffsetCommitRequestPartition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OffsetCommitRequestPartition
impl Debug for OffsetCommitRequestPartition
Source§impl Decodable for OffsetCommitRequestPartition
Available on crate feature broker
only.
impl Decodable for OffsetCommitRequestPartition
broker
only.Source§impl Encodable for OffsetCommitRequestPartition
Available on crate feature client
only.
impl Encodable for OffsetCommitRequestPartition
client
only.Source§impl Message for OffsetCommitRequestPartition
impl Message for OffsetCommitRequestPartition
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
Source§impl PartialEq for OffsetCommitRequestPartition
impl PartialEq for OffsetCommitRequestPartition
Source§fn eq(&self, other: &OffsetCommitRequestPartition) -> bool
fn eq(&self, other: &OffsetCommitRequestPartition) -> bool
self
and other
values to be equal, and is used by ==
.