#[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-8
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-8
error_code: i16The partition error code, or 0 if there was no error.
Supported API versions: 0-8
old_style_offsets: Vec<i64>The result offsets.
Supported API versions: 0
timestamp: i64The timestamp associated with the returned offset.
Supported API versions: 1-8
offset: i64The returned offset.
Supported API versions: 1-8
leader_epoch: i32Supported API versions: 4-8
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-8
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-8
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-8
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-8
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-8
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 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 ==.impl StructuralPartialEq for ListOffsetsPartitionResponse
Auto Trait Implementations§
impl Freeze for ListOffsetsPartitionResponse
impl RefUnwindSafe for ListOffsetsPartitionResponse
impl Send for ListOffsetsPartitionResponse
impl Sync for ListOffsetsPartitionResponse
impl Unpin for ListOffsetsPartitionResponse
impl UnwindSafe for ListOffsetsPartitionResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)