#[non_exhaustive]pub struct OffsetFetchResponsePartitions {
pub partition_index: i32,
pub committed_offset: i64,
pub committed_leader_epoch: i32,
pub metadata: Option<StrBytes>,
pub error_code: i16,
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: i32The partition index.
Supported API versions: 8-9
committed_offset: i64The committed message offset.
Supported API versions: 8-9
committed_leader_epoch: i32The leader epoch.
Supported API versions: 8-9
metadata: Option<StrBytes>The partition metadata.
Supported API versions: 8-9
error_code: i16The partition-level error code, or 0 if there was no error.
Supported API versions: 8-9
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
Source§impl OffsetFetchResponsePartitions
impl OffsetFetchResponsePartitions
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: 8-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 committed message offset.
Supported API versions: 8-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.
Supported API versions: 8-9
Sourcepub fn with_metadata(self, value: Option<StrBytes>) -> Self
pub fn with_metadata(self, value: Option<StrBytes>) -> Self
Sets metadata to the passed value.
The partition metadata.
Supported API versions: 8-9
Sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code to the passed value.
The partition-level error code, or 0 if there was no error.
Supported API versions: 8-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 OffsetFetchResponsePartitions
impl Clone for OffsetFetchResponsePartitions
Source§fn clone(&self) -> OffsetFetchResponsePartitions
fn clone(&self) -> OffsetFetchResponsePartitions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Decodable for OffsetFetchResponsePartitions
Available on crate feature client only.
impl Decodable for OffsetFetchResponsePartitions
client only.Source§impl Encodable for OffsetFetchResponsePartitions
Available on crate feature broker only.
impl Encodable for OffsetFetchResponsePartitions
broker only.Source§impl Message for OffsetFetchResponsePartitions
impl Message for OffsetFetchResponsePartitions
Source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for OffsetFetchResponsePartitions
impl PartialEq for OffsetFetchResponsePartitions
Source§fn eq(&self, other: &OffsetFetchResponsePartitions) -> bool
fn eq(&self, other: &OffsetFetchResponsePartitions) -> bool
self and other values to be equal, and is used by ==.