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