#[non_exhaustive]pub struct ListOffsetsPartitionResponse {
pub partition_index: i32,
pub error_code: i16,
pub old_style_offsets: Vec<i64>,
pub timestamp: i64,
pub offset: i64,
pub leader_epoch: i32,
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
error_code: i16
The partition error code, or 0 if there was no error.
Supported API versions: 0-9
old_style_offsets: Vec<i64>
The result offsets.
Supported API versions: 0
timestamp: i64
The timestamp associated with the returned offset.
Supported API versions: 1-9
offset: i64
The returned offset.
Supported API versions: 1-9
leader_epoch: i32
Supported API versions: 4-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl ListOffsetsPartitionResponse
impl ListOffsetsPartitionResponse
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_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code
to the passed value.
The partition error code, or 0 if there was no error.
Supported API versions: 0-9
Sourcepub fn with_old_style_offsets(self, value: Vec<i64>) -> Self
pub fn with_old_style_offsets(self, value: Vec<i64>) -> Self
Sets old_style_offsets
to the passed value.
The result offsets.
Supported API versions: 0
Sourcepub fn with_timestamp(self, value: i64) -> Self
pub fn with_timestamp(self, value: i64) -> Self
Sets timestamp
to the passed value.
The timestamp associated with the returned offset.
Supported API versions: 1-9
Sourcepub fn with_offset(self, value: i64) -> Self
pub fn with_offset(self, value: i64) -> Self
Sets offset
to the passed value.
The returned offset.
Supported API versions: 1-9
Sourcepub fn with_leader_epoch(self, value: i32) -> Self
pub fn with_leader_epoch(self, value: i32) -> Self
Sets leader_epoch
to the passed value.
Supported API versions: 4-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 ListOffsetsPartitionResponse
impl Clone for ListOffsetsPartitionResponse
Source§fn clone(&self) -> ListOffsetsPartitionResponse
fn clone(&self) -> ListOffsetsPartitionResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ListOffsetsPartitionResponse
impl Debug for ListOffsetsPartitionResponse
Source§impl Decodable for ListOffsetsPartitionResponse
Available on crate feature client
only.
impl Decodable for ListOffsetsPartitionResponse
client
only.Source§impl Encodable for ListOffsetsPartitionResponse
Available on crate feature broker
only.
impl Encodable for ListOffsetsPartitionResponse
broker
only.Source§impl Message for ListOffsetsPartitionResponse
impl Message for ListOffsetsPartitionResponse
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for ListOffsetsPartitionResponse
impl PartialEq for ListOffsetsPartitionResponse
Source§fn eq(&self, other: &ListOffsetsPartitionResponse) -> bool
fn eq(&self, other: &ListOffsetsPartitionResponse) -> bool
self
and other
values to be equal, and is used by ==
.