#[non_exhaustive]pub struct OffsetFetchRequest {
pub group_id: GroupId,
pub topics: Option<Vec<OffsetFetchRequestTopic>>,
pub groups: Vec<OffsetFetchRequestGroup>,
pub require_stable: bool,
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.group_id: GroupId
The group to fetch offsets for.
Supported API versions: 0-7
topics: Option<Vec<OffsetFetchRequestTopic>>
Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.
Supported API versions: 0-7
groups: Vec<OffsetFetchRequestGroup>
Each group we would like to fetch offsets for
Supported API versions: 8-9
require_stable: bool
Whether broker should hold on returning unstable offsets but set a retriable error code for the partitions.
Supported API versions: 7-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OffsetFetchRequest
impl OffsetFetchRequest
Sourcepub fn with_group_id(self, value: GroupId) -> Self
pub fn with_group_id(self, value: GroupId) -> Self
Sets group_id
to the passed value.
The group to fetch offsets for.
Supported API versions: 0-7
Sourcepub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopic>>) -> Self
pub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopic>>) -> Self
Sets topics
to the passed value.
Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.
Supported API versions: 0-7
Sourcepub fn with_groups(self, value: Vec<OffsetFetchRequestGroup>) -> Self
pub fn with_groups(self, value: Vec<OffsetFetchRequestGroup>) -> Self
Sets groups
to the passed value.
Each group we would like to fetch offsets for
Supported API versions: 8-9
Sourcepub fn with_require_stable(self, value: bool) -> Self
pub fn with_require_stable(self, value: bool) -> Self
Sets require_stable
to the passed value.
Whether broker should hold on returning unstable offsets but set a retriable error code for the partitions.
Supported API versions: 7-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 OffsetFetchRequest
impl Clone for OffsetFetchRequest
Source§fn clone(&self) -> OffsetFetchRequest
fn clone(&self) -> OffsetFetchRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OffsetFetchRequest
impl Debug for OffsetFetchRequest
Source§impl Decodable for OffsetFetchRequest
Available on crate feature broker
only.
impl Decodable for OffsetFetchRequest
broker
only.Source§impl Default for OffsetFetchRequest
impl Default for OffsetFetchRequest
Source§impl Encodable for OffsetFetchRequest
Available on crate feature client
only.
impl Encodable for OffsetFetchRequest
client
only.Source§impl From<OffsetFetchRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<OffsetFetchRequest> for RequestKind
messages_enums
only.Source§fn from(value: OffsetFetchRequest) -> RequestKind
fn from(value: OffsetFetchRequest) -> RequestKind
Source§impl HeaderVersion for OffsetFetchRequest
impl HeaderVersion for OffsetFetchRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for OffsetFetchRequest
impl Message for OffsetFetchRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
Source§impl PartialEq for OffsetFetchRequest
impl PartialEq for OffsetFetchRequest
Source§impl Request for OffsetFetchRequest
Available on crate features client
and broker
only.
impl Request for OffsetFetchRequest
client
and broker
only.