#[non_exhaustive]pub struct OffsetFetchRequestGroup {
pub group_id: GroupId,
pub member_id: Option<StrBytes>,
pub member_epoch: i32,
pub topics: Option<Vec<OffsetFetchRequestTopics>>,
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 ID.
Supported API versions: 8-9
member_id: Option<StrBytes>
The member ID assigned by the group coordinator if using the new consumer protocol (KIP-848).
Supported API versions: 9
member_epoch: i32
The member epoch if using the new consumer protocol (KIP-848).
Supported API versions: 9
topics: Option<Vec<OffsetFetchRequestTopics>>
Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.
Supported API versions: 8-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OffsetFetchRequestGroup
impl OffsetFetchRequestGroup
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 ID.
Supported API versions: 8-9
Sourcepub fn with_member_id(self, value: Option<StrBytes>) -> Self
pub fn with_member_id(self, value: Option<StrBytes>) -> Self
Sets member_id
to the passed value.
The member ID assigned by the group coordinator if using the new consumer protocol (KIP-848).
Supported API versions: 9
Sourcepub fn with_member_epoch(self, value: i32) -> Self
pub fn with_member_epoch(self, value: i32) -> Self
Sets member_epoch
to the passed value.
The member epoch if using the new consumer protocol (KIP-848).
Supported API versions: 9
Sourcepub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopics>>) -> Self
pub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopics>>) -> 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: 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 OffsetFetchRequestGroup
impl Clone for OffsetFetchRequestGroup
Source§fn clone(&self) -> OffsetFetchRequestGroup
fn clone(&self) -> OffsetFetchRequestGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OffsetFetchRequestGroup
impl Debug for OffsetFetchRequestGroup
Source§impl Decodable for OffsetFetchRequestGroup
Available on crate feature broker
only.
impl Decodable for OffsetFetchRequestGroup
broker
only.Source§impl Default for OffsetFetchRequestGroup
impl Default for OffsetFetchRequestGroup
Source§impl Encodable for OffsetFetchRequestGroup
Available on crate feature client
only.
impl Encodable for OffsetFetchRequestGroup
client
only.